-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Labels
Description
-
[ ✅] Searched existing issues to avoid creating duplicates.
-
[ ✅] Confirmed that it can be reproduced in built-in themes without customized css.
If it only exists in 3rd party themes or css, you can still report it, but please attach the theme target or the css file. We may not "fix" it, if it is caused by 3rd party themes or css styles that we cannot support.
-
[ ✅] Searched http://support.typora.io/
Describe the bug
The Linux installation instructions on https://typoraio.cn/#linux contain two issues:
- A typo in the repository URL:
https:/typoraio.cn/linuxis missing one slash (/), should behttps://typoraio.cn/linux. - The instructions use the legacy
sources.listformat, but modern Debian/Ubuntu systems recommend the DEB822 format (.sourcesfiles) for better clarity and maintainability.
To Reproduce
Steps to reproduce the behavior:
- Go to 'https://typoraio.cn/#linux'
- Copy the provided installation commands
- Run the command:
echo "deb [signed-by=/etc/apt/keyrings/typora.gpg] https:/typoraio.cn/linux ./" | sudo tee /etc/apt/sources.list.d/typora.list - See error:
apt updatefails
Expected behavior
The installation instructions should:
- Use a correct and valid repository URL (
https://...) - Prefer the modern DEB822 format (e.g.,
/etc/apt/sources.list.d/typora.sources) as recommended by Debian and Ubuntu documentation.
To Fix
# Create the keyrings directory (if it does not exist)
sudo mkdir -p /etc/apt/keyrings
# Download and save the GPG key
curl -fsSL https://typoraio.cn/linux/typora.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/typora.gpg
# Add a software source in DEB822 format
cat <<EOF | sudo tee /etc/apt/sources.list.d/typora.sources
Types: deb
URIs: https://typoraio.cn/linux
Suites: ./
Signed-By: /etc/apt/keyrings/typora.gpg
EOF
# Update and Install
sudo apt update
sudo apt install typora