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

The apt-add-repository line for installing on linux doesn't work? #307

Closed
dflock opened this issue Sep 27, 2016 · 17 comments
Closed

The apt-add-repository line for installing on linux doesn't work? #307

dflock opened this issue Sep 27, 2016 · 17 comments
Labels

Comments

@dflock
Copy link

dflock commented Sep 27, 2016

From here, this line:

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

works, but when you do sudo apt-get update, you get an error:

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

The add-apt-repository line creates this in the /etc/apt/sources.list file:

deb https://typora.io linux/
# deb-src https://typora.io linux/

This is on Ubuntu 14.04.

This is probably simple to fix - where is the .deb file? What's the direct download link?

@dflock
Copy link
Author

dflock commented Sep 27, 2016

OK, so the .deb is here: http://typora.io/linux/typora_0.9.19_amd64.deb

Not sure this is a debian repo? Can't browse that folder.

@abnerlee
Copy link
Contributor

@dflock I have tested on Ubuntu 16.04, that should work.

So, what is your Linux distribution?

And if you use sudo add-apt-repository 'deb http://typora.io linux/' ? (http not https)

Besides, if only "warnings", no "errors", you still should be able to add the repo and install typora.

@dflock
Copy link
Author

dflock commented Sep 28, 2016

This is on Ubuntu 14.04

You're correct about the warning vs error thing - I can actually install from the repo, but I get warnings every time apt updates/talks to that repo - either on the command line:

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

or in the GUI (synaptic in this case):

screenshot_2016-09-28_12-39-36

@abnerlee abnerlee added the bug label Sep 29, 2016
@brbsix
Copy link

brbsix commented Oct 5, 2016

I noticed this behavior also. I was reminded of it when I saw Typora on the HN homepage today. I ended up commenting on it there.

In order to suppress the warning I changed the line to:

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

@abnerlee
Copy link
Contributor

abnerlee commented Oct 6, 2016

#331

@abnerlee
Copy link
Contributor

abnerlee commented Oct 6, 2016

I tried #331, and seems no warning on my Ubuntu, so I will change that way.

@abnerlee abnerlee closed this as completed Oct 6, 2016
@73
Copy link

73 commented Nov 17, 2017

It is still on the website: https://typora.io/#linux

@hans
Copy link

hans commented Dec 28, 2017

Bump, I just ran into this too. (Ping @abnerlee ?)

@abnerlee
Copy link
Contributor

@hans Hi, how about

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

or

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

@ghost
Copy link

ghost commented May 6, 2018

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

@ghost
Copy link

ghost commented May 6, 2018

Tried both of them none of them works..

@abnerlee abnerlee reopened this May 7, 2018
@sebastianmacias
Copy link

I'm also having the same issue on ubuntu 18.04

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

@abnerlee
Copy link
Contributor

@sebastianmacias Could following work?

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

@abnerlee
Copy link
Contributor

see #706

@rowheel
Copy link

rowheel commented May 16, 2018

Having an issue on Kali Linux. Executed following command:
# echo "deb https://typora.io/linux ./" > /etc/apt/sources.list.d/typora.list ; apt update ; apt install typora
and apt just threw me an 404 error... However if I changed the string into:
"deb https://typora.io ./linux/"
everything works well except a warning arguing conflicting distribution. Anyone knows why? orz

@abnerlee
Copy link
Contributor

@leo-wsy could you manually download https://typora.io/linux/linux/typora_0.9.51_amd64.deb and https://typora.io/linux/./linux/typora_0.9.51_amd64.deb without 404?

@Erich-Chen
Copy link

Try install software-properties-common to get add-apt-repository command work.
sudo apt install software-properties-common -y

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

No branches or pull requests

8 participants