Skip to content

Commit 70c3aca

Browse files
committed
delete Alternative for apt-key section
1 parent 397d0bb commit 70c3aca

File tree

1 file changed

+10
-30
lines changed

1 file changed

+10
-30
lines changed

_posts/basic/2016-09-26-Typora on Linux.md

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ tags:
77
- linux
88
- tutorial
99
typora-root-url: "../../"
10-
last_modified_at: 2025-07-08
10+
last_modified_at: 2025-07-13
1111
---
1212

1313
Installation instructions for different flavours of Linux.
@@ -35,38 +35,18 @@ If you once installed Typora below version 1.11, you need to remove the old keys
3535
sudo rm /etc/apt/trusted.gpg.d/typora.asc
3636
```
3737

38-
### Alternative for `apt-key`
38+
### [Unsafe] Install without keys
3939

40-
When you try to add an APT repository key using `apt-key` (first line in previous command line) on Debian, Ubuntu and Linux distributions based on these, you'll see the following message: "*Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8))*".
41-
42-
The easiest way would be just to ignore it.
43-
44-
But if you’re not OK with the warning, you can do the following:
45-
46-
1. Download the key and save it locally somewhere.
47-
48-
```shell
49-
curl https://typora.io/linux/public-key.asc | gpg --dearmor > /usr/share/keyrings/typora.gpg
50-
```
51-
52-
2. Create the repo file `typora.list` in `/etc/apt/sources.list.d`.
53-
54-
```shell
55-
sudo vim /etc/apt/sources.list.d/typora.list
56-
```
57-
58-
3. Paste the repo definition into this file:
59-
60-
```shell
61-
deb [arch=amd64 signed-by=/usr/share/keyrings/typora.gpg] https://downloads.typora.io/linux ./
62-
```
40+
```bash
41+
# Create a new repo source file
42+
echo "deb [trusted=yes] https://downloads.typora.io/linux ./" | sudo tee /etc/apt/sources.list.d/typora.list
6343

64-
4. Now you can install Typora:
44+
# Update package lists
45+
sudo apt update
6546

66-
```shell
67-
sudo apt-get update
68-
sudo apt-get install typora
69-
```
47+
# Install typora
48+
sudo apt install typora
49+
```
7050

7151
### Upgrade Typora
7252

0 commit comments

Comments
 (0)