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

Malformed input, repository not added. #2065

Closed
MiguelNiblock opened this Issue Jan 8, 2019 · 13 comments

Comments

Projects
None yet
7 participants
@MiguelNiblock
Copy link

MiguelNiblock commented Jan 8, 2019

When I run:

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

I get:

Malformed input, repository not added.

Running Linux Mint 19.1

@abnerlee

This comment has been minimized.

Copy link
Contributor

abnerlee commented Jan 9, 2019

I'm currently not able to reproduce this on Ubuntu, but you could also try

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

For alternative ways in https://support.typora.io/Typora-on-Linux/

@abnerlee abnerlee closed this Jan 9, 2019

@abnerlee abnerlee added the linux label Jan 9, 2019

@bjadamson

This comment has been minimized.

Copy link

bjadamson commented Jan 16, 2019

I'm also getting this on Linux Mint

@sternj

This comment has been minimized.

Copy link

sternj commented Jan 16, 2019

@abnerlee advise reopening, I have reproduced this on Mint 19.1

@bjadamson

This comment has been minimized.

Copy link

bjadamson commented Jan 16, 2019

Oh whoah I just assumed this was still opened when I commented. Yeah please re-open!

@brbernardo90

This comment has been minimized.

Copy link

brbernardo90 commented Jan 16, 2019

I have the same issue, Mint 19.1

@abnerlee abnerlee reopened this Jan 18, 2019

@abnerlee

This comment has been minimized.

Copy link
Contributor

abnerlee commented Jan 18, 2019

Does

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

work? @brbernardo90 @bjadamson @sternj

@moyersmike

This comment has been minimized.

Copy link

moyersmike commented Jan 18, 2019

Just tried that command on Linux Mint 19.1, receiving the same error as before @abnerlee .

@MiguelNiblock

This comment has been minimized.

Copy link
Author

MiguelNiblock commented Jan 18, 2019

Does

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

work? @brbernardo90 @bjadamson @sternj

Still doesn't work. Im currently using the portable binary version, which doesn't integrate with my desktop. That's the only way I've been able to use the latest build on Mint.

@rbbernardino

This comment has been minimized.

Copy link

rbbernardino commented Jan 19, 2019

Me too on Mint 19.1, it seems to be specifically to this version...

@abnerlee

This comment has been minimized.

Copy link
Contributor

abnerlee commented Jan 20, 2019

Closing this since it is an issue specific to Mint 19.1

@abnerlee abnerlee closed this Jan 20, 2019

@bjadamson

This comment has been minimized.

Copy link

bjadamson commented Jan 20, 2019

I’m on Linux mint 18 and this was an issue for me

@rbbernardino

This comment has been minimized.

Copy link

rbbernardino commented Jan 20, 2019

Solution

@MiguelNiblock @bjadamson @brbernardo90 I have managed to get it working! Simply add it manually by editing the file /etc/apt/sources.list and adding the line deb https://typora.io/linux ./
You may do that also just by running:

echo -e "\ndeb https://typora.io/linux ./" | sudo tee -a /etc/apt/sources.list

Explanation:

I have realized the add-apt-repository of Linux Mint is different from the Ubuntu original one. By instance, if you try -m option (debug), it will not work in Mint, which seems to be a much simpler (and maybe old) version of this program. In Ubuntu, it seems to be provided by software-properties-common package, while Mint replaced it with mintsources.

I have added several software sources in the past and indeed this format is not so common, generally there are two arguments after the url, like in the following examples (non-free and main):

deb [arch=amd64] https://repo.skype.com/deb stable **main**
deb http://repository.spotify.com stable **non-free**
deb https://deb.nodesource.com/node_11.x bionic **main**

So it seems the Mint add-apt-repository doesn't accept any input missing the last argument. However, if you manually add it to the sources.list and run sudo apt update everything will work just fine 😄

@MiguelNiblock

This comment has been minimized.

Copy link
Author

MiguelNiblock commented Jan 21, 2019

OMG this finally worked! Im so childishly excited! hahaha

Thank you @rbbernardino for the insightful revelation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment