Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update instructions on https://typora.io/#linux #706

Closed
orschiro opened this issue May 16, 2017 · 51 comments
Closed

Update instructions on https://typora.io/#linux #706

orschiro opened this issue May 16, 2017 · 51 comments

Comments

@orschiro
Copy link

orschiro commented May 16, 2017

Dear @abnerlee,

Could you please update the installation instructions for Linux?

This command is no longer working:

sudo add-apt-repository 'deb https://typora.io ./linux/'
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: Conflicting distribution: https://typora.io ./linux/ InRelease (expected ./linux/ but got )

Thank you!

@orschiro
Copy link
Author

@abnerlee can you please respond to the general state of Typora for Linux? How are users supposed to receive the latest version if the repository is broken?

@abnerlee
Copy link
Contributor

Ref #331

Before the fix, please just ignore the Warning

@conspacer
Copy link

Warning still showing on Ubuntu 17.04 following instructions from typora.io.

sudo apt-get update
~
Hit:12 https://typora.io ./linux/ InRelease
~
W: Conflicting distribution: https://typora.io ./linux/ InRelease (expected ./linux/ but got )

@Y-Taras
Copy link

Y-Taras commented Aug 14, 2017

Is this ever going to be fixed?
Warning still showing on Ubuntu 14.04 following instructions from typora.io.

sudo apt-get update
....
W: Conflicting distribution: https://typora.io ./linux/ InRelease (expected ./linux but got )

@abnerlee
Copy link
Contributor

Should be sudo add-apt-repository 'deb https://typora.io linux/, this works well on my Ubuntu. I will update the instruction later.

@Y-Taras
Copy link

Y-Taras commented Aug 14, 2017

I've done as you said before sudo add-apt-repository 'deb https://typora.io linux/',
and got :

Reading package lists... Done                    
W: Conflicting distribution: https://typora.io linux/ InRelease (expected linux but got )

@abnerlee
Copy link
Contributor

@Y-Taras What's your Linux/Ubuntu version?

@Y-Taras
Copy link

Y-Taras commented Aug 15, 2017

my Linux/Ubuntu version is Ubuntu 14.04.5 LTS

@conspacer
Copy link

Ubuntu 17.04 (x64) Official Gnome flavor
First:

sudo add-apt-repository 'deb https://typora.io linux/'

and then:

sudo apt-get update
...
W: Conflicting distribution: https://typora.io linux/ InRelease (expected linux/ but got )

@thnee
Copy link

thnee commented Aug 25, 2017

Same thing here on Debian testing. Tried both linux/ and ./linux/, both result in W: Conflicting distribution: https://typora.io linux/ InRelease (expected linux/ but got ). Anything else to try?

@gguoss
Copy link

gguoss commented Sep 15, 2017

ubuntu17.04 also error:
GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E074D16EB6FF4DE3

@nnutter
Copy link

nnutter commented Sep 15, 2017

@gguoss That doesn't really have anything to do with Typora. Yarn changed their key (or the NSA took over).

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -

@happydemic
Copy link

happydemic commented Sep 16, 2017

Like @thnee said, the repo is not set up quite right. On Ubuntu 17.04, apt can install Typora with either
deb https://typora.io ./linux/ or deb https://typora.io linux/

but there's a warning with every apt update:
W: Conflicting distribution: https://typora.io ./linux/ InRelease (expected ./linux/ but got ) or (expected linux/ but got )

Confusing for those unfamiliar with apt, and irritating for anyone who keeps an eye on apt logs.

@matonix
Copy link

matonix commented Oct 4, 2017

I'm proxy user.
It works for me. (added keyserver-option, and you should change $http_proxy to your proxy settings)
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --keyserver-option http-proxy=$http_proxy --recv-keys BA300B7755AFCFAE

@timschroederme
Copy link

The command should probably be sudo add-apt-repository 'deb https://typora.io/linux ./'.

@happydemic
Copy link

@timschroedernet That repo line deb https://typora.io/linux ./ can be read by apt without a warning, but the package can't be downloaded from the repo with that line.

Err:1 https://typora.io/linux ./ typora 0.9.37-1
  404  Not Found
E: Failed to fetch https://typora.io/linux/./linux/typora_0.9.37_amd64.deb  404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

The package does install from deb https://typora.io ./linux/ or deb https://typora.io linux/ , but apt gives a warning.

@abnerlee
Copy link
Contributor

abnerlee commented Oct 9, 2017

How about deb https://typora.io/linux ../? I don't know why but all warnings are gone in my Ubuntu...

@happydemic
Copy link

@abnerlee I get:
E: The repository 'https://typora.io/linux ../ Release' does not have a Release file.

@koesherbacon
Copy link

koesherbacon commented Oct 13, 2017

~~ Removed to avoid confusion ~~

@happydemic
Copy link

@koesherbacon
There are two deb lines which are known to work (see my post above): deb https://typora.io ./linux/ or deb https://typora.io linux/ are equivalent, and either can be used successfully to download and install typora.

Your instructions will work, but most users should not need to manually download and install the package with dpkg. The correct installation instructions under normal circumstances are given at https://typora.io/#linux or, using sources.list.d for neatness:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE
sudo echo 'deb https://typora.io ./linux/' | sudo tee /etc/apt/sources.list.d/typora.list
sudo apt update
sudo apt install typora

The 'problem' - let's call it a minor irritation - is that apt gives a warning for this repo (not an error) - which blemishes logs and confuses newbies. It does this because the typora repo is not set up quite correctly. The repo still works, but it causes apt to give an unnecessary warning message.

Your instructions remove the Typora repo after installation with
sudo rm -fv /etc/apt/sources.list.d/typora.list*
Removing the repo will (naturally) remove the warning from apt update, because the problematic Typora repo has been deleted. But after removing the repository, the user will cease to get automatic updates through apt upgrade. It is therefore not a solution.

@koesherbacon
Copy link

You're completely correct. I already knew it was more of a cosmetc "fix" rather than something that would completely solve the irritation as you put it. I'll therefor remove my "solution" so nobody gets tricked by it. (Sorry if this sounds snarky, I don't mean it that way, sometimes tone can't quite be understood over the internet. I genuinely want to remove it so others are not confused by it)

@gkfnf
Copy link

gkfnf commented Oct 26, 2017

after typora was installed on ubuntu17.10 in a VMware:
i can't run it
typora: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
Is there any one could tell me what caused for this? and how to fix it?

@sadeqn
Copy link

sadeqn commented Nov 6, 2017

On Debian Stretch I got same error message. I tested this command to see what are URLs for the repositories:

$ sudo apt-get update --print-uris|grep typora 
'https://typora.io/linux/InRelease' typora.io_linux_InRelease 0 
'https://typora.io/linux/Packages.xz' typora.io_linux_Packages 0 
'https://typora.io/linux/en_US.xz' typora.io_linux_en%5fUS 0 
'https://typora.io/linux/en.xz' typora.io_linux_en 0_ 

then I checked every URL by using curl and found there is not https://typora.io/linux/Packages.xz so I omitted ".xz" and the file was there.

Can be this source of error message?

@ghost
Copy link

ghost commented Feb 26, 2018

i just followed the instructions on: https://typora.io/#linux and got exactly the same Error:

Conflicting distribution: https://typora.io:443 linux/ InRelease (expected linux/ but got )

I am using Ubuntu 17.10 and have not changed anything on the standard installation, so i assume that theres still a Issue?

@kcyarn
Copy link

kcyarn commented Mar 15, 2018

Same here. Ubuntu 17.10

I also tried manually adding the repository to my sources.list file. Add received the following errors.

Using the doc's provided deb http://typora.io linux/, I get

W: Conflicting distribution: https://typora.io:443 linux/ InRelease (expected linux/ but got )

Using the above 'deb https://typora.io ./linux/', I get

E: Failed to fetch https://typora.io/linux/./linux/typora_0.9.47_amd64.deb 404 Not Found

@kcyarn
Copy link

kcyarn commented Mar 15, 2018

On a whim, I ran install after receiving the W: Conflicting distribution message. (It is just a warning and the machine's a sandbox, so um...)

Typora installed and runs with no issues.

I haven't dug into the repository to see if this is the actual problem. However, the last time I experienced a similar error, the repository was missing Release, InRelease, and Release.gpg. In other words, there was missed step when creating the authentication. Don't know if that will help...

@happydemic
Copy link

As mentioned above, Typora installs fine, but it produces an apt Warning that confuses newbies and blemishes logs. As you say, @kcyarn, this is a problem with the Repository configuration.

@abnerlee
Copy link
Contributor

I cannot see warnings on my two Linux VMs anymore after some day. So I cannot validate the correct add-apt-repository line for now.

So I hope someone can post the repo line that will not cause warning in step sudo apt-get update.
It will be OK if error E: Failed to fetch is shown in apt-get install step since we can set redirect proxy in our website.

@GreatBahram
Copy link

@abnerlee
why don't create release file for Ubuntu?
it should be something like this
sudo add-apt-repository 'deb https://typora.io/linux/ bionic main' ?
This message every time is like pain in the ass
W: Conflicting distribution: https://typora.io linux/ InRelease (expected linux/ but got )

@arruor
Copy link

arruor commented Apr 11, 2018

@abnerlee
I couldn't install package via APT tools in Ubuntu (17.10.1).
Here is a detailed error message .
The problem with

E: Failed to fetch https://typora.io/linux/./linux/typora_0.9.48_amd64.deb  404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

is caused by incorrect directory structure of your repository and Packages file contents.
We have two redundant paths in Package URL, because:

  • first occurrence is in repo URL added in /etc/apt/source.list[.d/typora.list]
  • second one is in meta data in Packages file

To be able to fix this you have to rebuild your repository.
More details are available at: Debian Repository HOWTO .
You can perhaps also consider a Launchpad PPA

@robfrawley
Copy link

robfrawley commented May 15, 2018

Reasoned Thoughts

  • The official installation page continues, after a year, to provide instructions that casuse apt update to emmit a warning, a situation which is untennable for those who always check that apt isn't complaining about anything to ensure their sources are properly configured and their package manager is acting in a manner that ensures system stability and security.
  • As previously stated in an earlier comment, the only functional entry that does not cause apt to warn about a "conflicting distribution" is deb https://typora.io/linux ./. This syntax allows for updates, upgrades, and installation to occure without any warnings or other errors.

Please, update the website instructions to use a syntax that does not emmit a warning:

# this source list entry actually works correctly:
deb https://typora.io/linux ./

# this source list entry (as written on the official website) causes a warning:
deb https://typora.io linux/

Ranting Thoughts

(Feel free to ignore this section unless you have some extra time you are looking to kill and are interested in the habbits of an OCD admin.)

"Typora installs fine, but it produces an apt warning that confuses newbies and blemishes logs" -@happydemic (my emphasis added)

Saying (multiple times) that this issue only "confuse newbies" and "blemishes logs" minimizes a real issue. If an entry in my sources is emmitting a warning, something is wrong. The warning is there to tell admins that something is incorrect/improper/dangerous or otherwise noteworthy with the repository; many of the warnings apt update can emmit are important and point to compatability, stability, or security issues with your configured sources.

Allowing this warning to always exist (throughout the entire past year, in fact) desensitizes the user/admin to warnings from apt; now that the user has come to expect a warning due to this repository, it makes it all the more likely other important warning will be ignored because the user is no longer scrutinizing the same warning message they've seen for the past year. You expect a warning will be shown, so you stop paying attention to what it says. This can be dangerous.

I do not allow any warnings from apt unless it is the direct result of an upstream bug in the core distribution packages that is outside my control. I strictly follow the below detailed workflow:

  1. If the apt sources are being edited, update/create entry as appropriate.
  2. Run apt update to refresh sources, ensuring no warnings are thrown.
  3. If any warnings or errors are thrown, resolve them. Full stop. No actions continue beyond this point until either a resolution is applied or the changes are reverted.
  4. Finally, only after everything works as expected and without warnings or errors, run apt upgrade or install operations as appropriate.

This issue breaks my above workflow, and I don't much appreciate it. :-) I want the warning gone after dealing with it for 12 months.

Upstream Warning History

The reason the error inconsistently shows up (depending on the distribution version/release) is because the apt warning described in this thread was accidentally removed for a period of time and later, after the accidental removal was noticed, added back. See Debian bug #841874 for additional information.

@abnerlee
Copy link
Contributor

Will change to deb https://typora.io/linux ./ based on @robfrawley's solution

@GreatBahram
Copy link

Yeah you're right. That works fine with that little change.

@abnerlee
Copy link
Contributor

changed to deb https://typora.io/linux ./

@GreatBahram
Copy link

GreatBahram commented May 15, 2018

I can't update Typora by using new address! Such a mess

E: Failed to fetch https://typora.io/linux/./linux/typora_0.9.51_amd64.deb  404  Not Found [IP: 108.61.207.230 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I think this means, no one can't install Typora by using above address, may you should bring it back.

@robfrawley
Copy link

@GreatBahram This is so weird. Earlier, it installed for me without issue, but now I can confirm the same issue you have described. The https://typora.io/linux/InRelease file should be updated so the Filename: ./linux/typora_*.deb lines instead read Filename: ./typora_*.deb. That fixes the issue locally anyway. This is a mess.


Why do you have such an odd package repository setup, to begin with? It seems odd to not have a distribution name. It seems odd that I cannot browse the repository by visiting https://typora.io/linux. It just seems like a slightly...unconventional implementation. :-)

@abnerlee
Copy link
Contributor

@GreatBahram @robfrawley You can download the package from https://typora.io/linux/linux/typora_0.9.51_amd64.deb, the 404 may be caused by some cache in your ISP provider.

And you could try the less odd package repo deb http://typora.io linux/, but it will throw warning for unknown reason

@arruor
Copy link

arruor commented May 16, 2018

@abnerlee
with your suggestion:

deb http://typora.io linux/

I end up with:

W: Conflicting distribution: https://typora.io:443 linux/ InRelease (expected linux/ but got )

If I use this one, instead:

deb https://typora.io/linux ./

then I end up with this:

Err:1 https://typora.io/linux ./ typora 0.9.51-1
  404  Not Found [IP: 108.61.207.230 443]
E: Failed to fetch https://typora.io/linux/./linux/typora_0.9.51_amd64.deb  404  Not Found [IP: 108.61.207.230 443]

, but I'm getting repository meta info (PoC with apt-get --fix-missing update issued):

Get:11 https://typora.io/linux ./ InRelease [758 B]
Get:12 https://typora.io/linux ./ Packages [7208 B]

Here is a neat trick which I use to install typora via package manager (I'm using Ubuntu 18.04):

# Remove leading ./ for ./linux in local Packages file
sed -ie "s/\.\/linux/linux/g"  /var/lib/apt/lists/typora.io_linux_._Packages 

PoC:

apt-get install typora
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  gir1.2-gnomekeyring-1.0
The following NEW packages will be installed:
  typora
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 43,7 MB of archives.
After this operation, 154 MB of additional disk space will be used.
Get:1 https://typora.io/linux ./ typora 0.9.51-1 [43,7 MB]
Fetched 43,7 MB in 11s (3929 kB/s)
Selecting previously unselected package typora.
(Reading database ... 373221 files and directories currently installed.)
Preparing to unpack .../typora_0.9.51-1_amd64.deb ...
Unpacking typora (0.9.51-1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Setting up typora (0.9.51-1) ...

Basically, malformed URL (https://typora.io/linux/./linux/typora_0.9.51_amd64.deb) comes from:

  • apt source line, there you have linux (as a directory name, in some form)
  • repository provided Packages file, there you have ./linux (with leading dot and slash)

Such path traversal (single or double dots are interpreted as a path traversal by both web servers and web clients (browsers) is not necessary.

Possible solutions:

  • Remove leading './' from Packages file when updating versions in repo - a quick one
  • Rename second linux to 'main' and regenrate rpository metadata - this create apt-compatible repository (still with custom layout, but will work)
  • Follow links provided in my previous comment - if you want to comply with Ubuntu / Debian packaging guidelines

@abnerlee
Copy link
Contributor

abnerlee commented May 16, 2018

@arruor I update the Packages from ./linux/typora_0.9.51-1_amd64.deb to linux/typora_0.9.51-1_amd64.deb, could you help confirm if that works? Thanks~

@arruor
Copy link

arruor commented May 17, 2018

@abnerlee
Thank you for the update. Now typora installs flawlessly without any troubles (warnings, errors, strange messages) with instructions provided at https://typora.io/#linux .

@robfrawley
Copy link

@abnerlee @GreatBahram @abnerlee Thanks for taking the time to work through this everyone. The new alterations that have been made over the last few days have now resulted in a completely unnoticeable experience as it pertains to typora and apt, and that's the way it should be. :-)

Updates, upgrades, installs perfectly now. Thanks again all! Good work.

@marcosfede
Copy link

this command is no longer working sudo add-apt-repository 'deb https://typora.io/linux ./' gives Malformed input, repository not added. as output
OS: linux mint 19

@arruor
Copy link

arruor commented Feb 10, 2019

@marcosfede Would you like to provide more detailed output, e.g. result of curl -I https://typora.io/linux/Packages. If you're using proxy to access Internet you should pass --E to sudo to honour environment variables like http(s)_proxy.

@Tynael
Copy link

Tynael commented Jan 30, 2020

this command is no longer working sudo add-apt-repository 'deb https://typora.io/linux ./' gives Malformed input, repository not added. as output
OS: linux mint 19

I am also receiving this error.

@marcosfede Would you like to provide more detailed output, e.g. result of curl -I https://typora.io/linux/Packages. If you're using proxy to access Internet you should pass --E to sudo to honour environment variables like http(s)_proxy.

This is what I get when I curl -l https://typora.io/linux/Packages:
Package: typora
Version: 0.9.83-1
Architecture: amd64
Maintainer: typorahi@typora.io
Installed-Size: 197304
Recommends: lsb-release
Suggests: gir1.2-gnomekeyring-1.0, libgnome-keyring0
Filename: linux/typora_0.9.83_amd64.deb
Size: 58980912
MD5sum: 2ab0387d019e750971507e158906902f
SHA1: 0c59f9a9f8114a698ce42b0e39a864d7fcd1b745
SHA256: f30e10425b299eed4905e2e4e850f52f08b246f7a04dbdd709b9329715765317
Section: editors
Priority: optional
Homepage: http://typora.io
Description: a minimal Markdown reading & writing app. Change Log: (https://typora.io/windows/dev_release.html)
Markdown Editor

@ai-aksoyoglu
Copy link

I have the same error as marcosfede and Tynael

@arruor
this is what I get with curl -l https://typora.io/linux/Packages

Package: typora
Version: 0.10.11-1
Architecture: amd64
Maintainer: typorahi@typora.io
Installed-Size: 226338
Recommends: lsb-release
Suggests: gir1.2-gnomekeyring-1.0, libgnome-keyring0
Filename: linux/typora_0.10.11_amd64.deb
Size: 66898252
MD5sum: 6bbf30401e30a3d89584a37e92ba509b
SHA1: 9b73a1f8f40d5692a94f6f3197a714daf0d479b5
SHA256: 4ed9446fe91ead504517d9032cfe9e9a68b3f73a4a01088ac09e791fb04b0fe8
Section: editors
Priority: optional
Homepage: http://typora.io
Description: a minimal Markdown reading & writing app. Change Log: (https://typora.io/windows/dev_release.html)
Markdown Editor

Package: typora
Version: 0.11.14-1
Architecture: amd64
Maintainer: typorahi@typora.io
Installed-Size: 240602
Recommends: lsb-release
Suggests: pandoc
Filename: linux/typora_0.11.14_amd64.deb
Size: 76390952
MD5sum: 6203ce153f872b3e006ad8aeb466253c
SHA1: 9dd72c69610187f813bce52ca12161419228a4e9
SHA256: 806b8aa89b710f1b47075a0276cfb88ad5d441245579691eee9a6dd7226b8012
Section: editors
Priority: optional
Homepage: http://typora.io
Description: a minimal Markdown reading & writing app. Change Log: (https://typora.io/windows/dev_release.html)
Markdown Editor

Package: typora
Version: 0.11.16-1
Architecture: amd64
Maintainer: typorahi@typora.io
Installed-Size: 224136
Recommends: lsb-release
Suggests: pandoc
Filename: linux/typora_0.11.16_amd64.deb
Size: 70279184
MD5sum: b437e658fa5b1f8ae75ab0c37fe5f43e
SHA1: eda69655eed2b7c9deb67e68fcb60366deec6bc2
SHA256: 2303f5b2a2f6a988068e9eaabf32fcdc95360e07075d710df732f8615a86e21c
Section: editors
Priority: optional
Homepage: http://typora.io
Description: a minimal Markdown reading & writing app. Change Log: (https://typora.io/windows/dev_release.html)
Markdown Editor

Package: typora
Version: 0.11.18-1
Architecture: amd64
Maintainer: typorahi@typora.io
Installed-Size: 224145
Recommends: lsb-release
Suggests: pandoc
Filename: linux/typora_0.11.18_amd64.deb
Size: 70282052
MD5sum: a37301cbb0e5b931ccf9d49dac1de654
SHA1: b8f20722aff7281d4b9b94c8915430c01bd47e0f
SHA256: a202935a754c4b7344cc947db143e12885e4a716ca5f70f607f0318c346bb6c6
Section: editors
Priority: optional
Homepage: http://typora.io
Description: a minimal Markdown reading & writing app. Change Log: (https://typora.io/windows/dev_release.html)
Markdown Editor

Package: typora
Version: 0.11.2-1
Architecture: amd64
Maintainer: typorahi@typora.io
Installed-Size: 223856
Recommends: lsb-release
Suggests: pandoc
Filename: linux/typora_0.11.2_amd64.deb
Size: 70297540
MD5sum: 2e58816a37280948ae97b8bafa2d4f59
SHA1: 8cca5a0735092e45f15b08648dbcffbfd483327d
SHA256: f07a03e06621eda6d9768e059e44c4484338640f8263ec59ca31243370fe022a
Section: editors
Priority: optional
Homepage: http://typora.io
Description: a minimal Markdown reading & writing app. Change Log: (https://typora.io/windows/dev_release.html)
Markdown Editor

Package: typora
Version: 0.11.8-1
Architecture: amd64
Maintainer: typorahi@typora.io
Installed-Size: 223905
Recommends: lsb-release
Suggests: pandoc
Filename: linux/typora_0.11.8_amd64.deb
Size: 70285540
MD5sum: e405786115578f543a3ca9b778f0bb1a
SHA1: f0c5d8360bf4ad19a36e79e61a2571e1de14e15a
SHA256: 218c49fdea2a9381c85f4f87486f9c86eb0682c37746b52058f1d5d8aa84955f
Section: editors
Priority: optional
Homepage: http://typora.io
Description: a minimal Markdown reading & writing app. Change Log: (https://typora.io/windows/dev_release.html)
Markdown Editor

Package: typora
Version: 0.9.98-1
Architecture: amd64
Maintainer: typorahi@typora.io
Installed-Size: 225823
Recommends: lsb-release
Suggests: gir1.2-gnomekeyring-1.0, libgnome-keyring0
Filename: linux/typora_0.9.98_amd64.deb
Size: 66724580
MD5sum: 9093b20a47ed666d605f90c85df1202c
SHA1: 9836d6cad81899062ad0e0e7f540018d96dbfe81
SHA256: 262aa3c53f191adb6b709adc42606818f9d1bae61667dbb6d3cdd1c59a0b32eb
Section: editors
Priority: optional
Homepage: http://typora.io
Description: a minimal Markdown reading & writing app. Change Log: (https://typora.io/windows/dev_release.html)
Markdown Editor

Package: typora
Version: 1.0.0-1
Architecture: amd64
Maintainer: typorahi@typora.io
Installed-Size: 224301
Recommends: lsb-release
Suggests: pandoc
Filename: linux/typora_1.0.0_amd64.deb
Size: 70309480
MD5sum: 1453b6baf89632fcb788e502e3708520
SHA1: 4e7f6cdcb650938ddf9ee4b041deb95b2e5d7651
SHA256: e7544d78f4e42d17136b64c59fa69d13b2c8c8a7adf02dcd2022f1ccc0d43e35
Section: editors
Priority: optional
Homepage: http://typora.io
Description: a minimal Markdown reading & writing app. Change Log: (https://typora.io/windows/dev_release.html)
Markdown Editor

Package: typora
Version: 1.0.0-1
Architecture: arm64
Maintainer: typorahi@typora.io
Installed-Size: 239659
Recommends: lsb-release
Suggests: pandoc
Filename: linux/typora_1.0.0_arm64.deb
Size: 69912072
MD5sum: c194d4e5888df87731fc5ee33776fc9e
SHA1: 5bb64ba52a92b527187918967c03b11055ce43e0
SHA256: 6656ae77c47c410d69b1d4aab7e686fcd775e86970286cb483344d07aba165e1
Section: editors
Priority: optional
Homepage: http://typora.io
Description: a minimal Markdown reading & writing app. Change Log: (https://typora.io/windows/dev_release.html)
Markdown Editor

Package: typora
Version: 1.0.2-1
Architecture: arm64
Maintainer: typorahi@typora.io
Installed-Size: 239659
Recommends: lsb-release
Suggests: pandoc
Filename: linux/typora_1.0.2_arm64.deb
Size: 69898576
MD5sum: f8deb73fe0ad4f659d6c456c3f3a087f
SHA1: 97ff624b484286b2375e5902151681148b03e0ed
SHA256: 044cf6f9ec288fd0c05db684084e719b598a3810384e03240a6aa647eb34f66d
Section: editors
Priority: optional
Homepage: http://typora.io
Description: a minimal Markdown reading & writing app. Change Log: (https://typora.io/windows/dev_release.html)
Markdown Editor

Package: typora
Version: 1.0.2-1
Architecture: amd64
Maintainer: typorahi@typora.io
Installed-Size: 224301
Recommends: lsb-release
Suggests: pandoc
Filename: linux/typora_1.0.2_amd64.deb
Size: 70312100
MD5sum: b2b7e091db7abec5f03b0b2357fdcb28
SHA1: c51fe1593ee2cc7d69dbeaeaaa5efb99c562fd7d
SHA256: 47ab91003d6cb856dc8c52f1735ed92ca702bb4ce3f1585f7e897041fb90a2fb
Section: editors
Priority: optional
Homepage: http://typora.io
Description: a minimal Markdown reading & writing app. Change Log: (https://typora.io/windows/dev_release.html)
Markdown Editor

Package: typora
Version: 1.0.3-1
Architecture: amd64
Maintainer: typorahi@typora.io
Installed-Size: 224302
Recommends: lsb-release
Suggests: pandoc
Filename: linux/typora_1.0.3_amd64.deb
Size: 70304652
MD5sum: d2a88195b45686da11b36844bca27e7f
SHA1: 494eecc682ed7eb5274253d5de14ba8adc95b9f9
SHA256: 7334256c020a9cf397c3b0e7f4bbf55a7ebba928b1358d0f4f17a86393507735
Section: editors
Priority: optional
Homepage: http://typora.io
Description: a minimal Markdown reading & writing app. Change Log: (https://typora.io/windows/dev_release.html)
Markdown Editor

@arruor
Copy link

arruor commented Jan 10, 2022

@ai-aksoyoglu Following instructions listed at https://typora.io/#linux I am getting

root@hive:~# wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK

root@hive:~# sudo add-apt-repository 'deb https://typora.io/linux ./'
Repository: 'deb https://typora.io/linux ./'
Description:
Archive for codename: ./ components: 
More info: https://typora.io/linux
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.

Adding deb entry to /etc/apt/sources.list.d/archive_uri-https_typora_io_linux-impish.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-https_typora_io_linux-impish.list
Hit:1 http://gb.archive.ubuntu.com/ubuntu impish InRelease
Get:2 http://gb.archive.ubuntu.com/ubuntu impish-updates InRelease [110 kB]                                                                                                                 
Hit:3 http://ppa.launchpad.net/kubuntu-ppa/backports/ubuntu impish InRelease                                                                                                                
Hit:4 http://archive.canonical.com/ubuntu impish InRelease                                                                                                                                  
Hit:5 http://ppa.launchpad.net/ondrej/apache2/ubuntu impish InRelease                                                                                                                       
Get:6 https://typora.io/linux ./ InRelease [793 B]                                                                                                                                          
Hit:7 http://security.ubuntu.com/ubuntu impish-security InRelease                                                                                                                           
Get:8 http://gb.archive.ubuntu.com/ubuntu impish-backports InRelease [101 kB]                                                                                                               
Hit:9 http://ppa.launchpad.net/ondrej/php/ubuntu impish InRelease                                                                                                                           
Get:10 http://gb.archive.ubuntu.com/ubuntu impish-proposed InRelease [270 kB]                                                                                                               
Hit:11 https://download.docker.com/linux/ubuntu impish InRelease                                                                                                                            
Hit:12 https://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                              
Hit:13 https://repo.skype.com/deb stable InRelease
Hit:14 https://repo.steampowered.com/steam stable InRelease
Hit:15 https://packages.microsoft.com/repos/ms-teams stable InRelease
Get:16 https://typora.io/linux ./ Packages [6,790 B]
Get:17 http://gb.archive.ubuntu.com/ubuntu impish-backports/universe Sources [2,596 B]
Get:18 http://gb.archive.ubuntu.com/ubuntu impish-backports/universe amd64 Packages [4,236 B]
Get:19 http://gb.archive.ubuntu.com/ubuntu impish-backports/universe i386 Packages [3,140 B]
Get:20 http://gb.archive.ubuntu.com/ubuntu impish-backports/universe amd64 c-n-f Metadata [480 B]
Fetched 499 kB in 2s (300 kB/s)
Reading package lists... Done

root@hive:~# sudo apt-get install typora
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  pandoc
The following NEW packages will be installed
  typora
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
Need to get 70.3 MB of archives.
After this operation, 230 MB of additional disk space will be used.
Get:1 https://typora.io/linux ./ typora 1.0.3-1 [70.3 MB]
Fetched 70.3 MB in 15s (4,775 kB/s)
Selecting previously unselected package typora.
(Reading database ... 400916 files and directories currently installed.)
Preparing to unpack .../typora_1.0.3-1_amd64.deb ...
Unpacking typora (1.0.3-1) ...
Setting up typora (1.0.3-1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mailcap (3.69ubuntu1) ...

I am using Kubuntu 21.10 standard installation. YMMV in your case.
Would you mind providing more details like what Distribution you are using, some output of sudo add-apt-repository 'deb https://typora.io/linux ./' please?
Thank you.

@ai-aksoyoglu
Copy link

@arruor

Linux Mint 20 Ulyana \n \l

@ai-aksoyoglu
Copy link

I need to rephrase my issue.
sudo add-apt-repository 'deb https://typora.io/linux ./'

gives me:
Repository already exists.

BUT the update manager gives me:

W: Conflicting distribution: https://typora.io linux/ InRelease (expected linux/ but got )

I apologize for the confusion

@abnerlee
Copy link
Contributor

@arruor you can ignore the warning, or see "Alternative for apt-key" in https://support.typora.io/Typora-on-Linux/

@abnerlee
Copy link
Contributor

@ai-aksoyoglu @arruor

You could also try sudo snap install typora if you met issues with apt-get

@ai-aksoyoglu
Copy link

Thank you, @abnerlee !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests