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

Malformed input, repository not added. #2065

Closed
MiguelNiblock opened this issue Jan 8, 2019 · 19 comments
Closed

Malformed input, repository not added. #2065

MiguelNiblock opened this issue Jan 8, 2019 · 19 comments
Labels

Comments

@MiguelNiblock
Copy link

@MiguelNiblock 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
Copy link
Contributor

@abnerlee 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
Copy link

@bjadamson bjadamson commented Jan 16, 2019

I'm also getting this on Linux Mint

@sternj
Copy link

@sternj sternj commented Jan 16, 2019

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

@bjadamson
Copy link

@bjadamson bjadamson commented Jan 16, 2019

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

@brbernardo90
Copy link

@brbernardo90 brbernardo90 commented Jan 16, 2019

I have the same issue, Mint 19.1

@abnerlee abnerlee reopened this Jan 18, 2019
@abnerlee
Copy link
Contributor

@abnerlee abnerlee commented Jan 18, 2019

Does

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

work? @brbernardo90 @bjadamson @sternj

@moyersmike
Copy link

@moyersmike moyersmike commented Jan 18, 2019

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

@MiguelNiblock
Copy link
Author

@MiguelNiblock 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
Copy link

@rbbernardino rbbernardino commented Jan 19, 2019

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

@abnerlee
Copy link
Contributor

@abnerlee 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
Copy link

@bjadamson bjadamson commented Jan 20, 2019

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

@rbbernardino
Copy link

@rbbernardino 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
Copy link
Author

@MiguelNiblock MiguelNiblock commented Jan 21, 2019

OMG this finally worked! Im so childishly excited! hahaha

Thank you @rbbernardino for the insightful revelation.

@luoshenzhi
Copy link

@luoshenzhi luoshenzhi commented May 9, 2019

relocation error: /usr/local/bin/Typora-linux-x64/resources/app/node_modules/spellchecker/node_modules/cld/build/Release/cld.node: symbol _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE14_M_replace_auxEmmmc, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference

shell> strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep 3.4.21
GLIBCXX_3.4.21

@invzbl3
Copy link

@invzbl3 invzbl3 commented Aug 17, 2019

I have reproduced this issue:
Malformed input, repository not added.

on Linux Mint 19.2 using the command:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(. /etc/os-release; echo "$UBUNTU_CODENAME") stable"

So I downgraded version of Linux Mint 19.2 to 19 and solved it. I think this problem is for specific versions after 19. Like 19.1, 19.2 and so on. As mentioned @rbbernardino you can add manually lines to repositories file /etc/apt/sources.list.d/additional-repositories.list in alternative way. (but for someone it may accur using 18 version or something like this).

@PrimeTime416
Copy link

@PrimeTime416 PrimeTime416 commented Aug 18, 2019

Editing file /etc/apt/sources.list.d/additional-repositories.list and adding deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable
worked for me, thanks all.

@mau21mau
Copy link

@mau21mau mau21mau commented Aug 30, 2019

I fixed by just removing the [arch=amd64] from the source.

sudo add-apt-repository "deb https://download.docker.com/linux/ubuntu bionic stable"

kenjyco added a commit to kenjyco/x200 that referenced this issue Nov 11, 2019
typora/typora-issues#2065 (comment)

(This may have only been an issue after Linux Mint 19.0, since some
mentioned downgrading from 19.1/19.2 to 19.0)
@Gong-fa
Copy link

@Gong-fa Gong-fa commented Dec 5, 2019

[69579:1205/105720.997916:FATAL:atom_main_delegate.cc(210)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
追踪与中断点陷阱

@LinuxOnTheDesktop
Copy link

@LinuxOnTheDesktop LinuxOnTheDesktop commented Jan 19, 2020

Please mention this issue - and the workaround - on https://typora.io/#linux.

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

Successfully merging a pull request may close this issue.

None yet