Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm a Linux newbie. A few days back I tried to download Signal through the terminal according to the steps mentioned on the site. I wasn't able to download it and it showed an error. The problem is whenever I try to download any software, it shows the same error it showed while I was trying to download Signal:
"E: Type 'sudo' is not known on line 2 in source list /etc/apt/sources.list.d/signal-xenial.list
E: The list of sources could not be read."
Even after rebooting my laptop, the problem persists. Other functions like shutting down work. What is the course of action I should take?
Last edited by jameswilson0609; 05-29-2019 at 11:46 AM.
Repos: Active apt sources in file: /etc/apt/sources.list
deb cdrom:[Xubuntu 18.04.2 LTS _Bionic Beaver_ - Release i386 (20190210)]/ bionic main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
Active apt sources in file: /etc/apt/sources.list.d/signal-xenial.list
deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main
sudo apt update && sudo apt install signal-desktop
deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main
deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main
Active apt sources in file: /etc/apt/sources.list.d/teejee2008-ubuntu-ppa-bionic.list
deb http://ppa.launchpad.net/teejee2008/ppa/ubuntu bionic main
Active apt sources in file: /etc/apt/sources.list.d/windscribe-repo.list
deb https://repo.windscribe.com/ubuntu zesty main
You apparently are running Ubuntu Xenial, but one of your repos is for Ubuntu Zesty. As pointed out in this post (which is a proposed "sticky"), that can be an issue.
Repos: Active apt sources in file: /etc/apt/sources.list
deb cdrom:[Xubuntu 18.04.2 LTS _Bionic Beaver_ - Release i386 (20190210)]/ bionic main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
Active apt sources in file: /etc/apt/sources.list.d/signal-xenial.list
deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main
sudo apt update && sudo apt install signal-desktop
deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main
deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main
Active apt sources in file: /etc/apt/sources.list.d/teejee2008-ubuntu-ppa-bionic.list
deb http://ppa.launchpad.net/teejee2008/ppa/ubuntu bionic main
Active apt sources in file: /etc/apt/sources.list.d/windscribe-repo.list
deb https://repo.windscribe.com/ubuntu zesty main
In addition to perhaps having the wrong release (xenial vs zesty) in your .list files, you also have "sudo apt update && sudo apt install signal-desktop" in /etc/apt/sources.list.d/signal-xenial.list
Presumably that file should only contain:
Code:
deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main
Remove that line from the file. Then in a terminal run those commands. Ie
this is a command, not a software source.
please remove it from wherever you added it, then run that very command from your command line a.k.a 'terminal'.
You have several problems with your software sources. You are probably not, as one poster above says, running Ubuntu Xenial (16.04). You appear to be running Ubuntu Bionic (18.04).
It is not good for your system to have "mixed" repositories from different versions of a distro. Yours has repositories from Bionic, Xenial and Zesty.
Please enter the following commands to rectify the situation.
First, open the main software sources file in a text editor (replace gedit with your favourite text editor if relevant).
Code:
sudo gedit /etc/apt/sources.list
Then place a # symbol at the start of the deb cdrom line (which effectively comments it out) and save the file.
You apparently are running Ubuntu Xenial, but one of your repos is for Ubuntu Zesty. As pointed out in this post (which is a proposed "sticky"), that can be an issue.
Quote:
Originally Posted by evo2
Hi,
In addition to perhaps having the wrong release (xenial vs zesty) in your .list files, you also have "sudo apt update && sudo apt install signal-desktop" in /etc/apt/sources.list.d/signal-xenial.list
Presumably that file should only contain:
Code:
deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main
Remove that line from the file. Then in a terminal run those commands. Ie
this is a command, not a software source.
please remove it from wherever you added it, then run that very command from your command line a.k.a 'terminal'.
The OP is running Bionic according to /etc/apt/sources.list. It is not a good idea in general to ask a poster with problems like these to run apt update unless all the software sources have been looked at and sorted out in case there are additional errors, which there are in this case.
My general approach to problems like these is to comment out or delete the "clashing" software sources, get apt update working correctly on the "non-clashing" software sources that remain and, only once that is working ok, look at finding correct replacements for the software sources for those that were deleted or commented out.
The way the world works, saying all that probably means that I'm now going to muck up my response to this particular poster's issue but the general principle remains - look at the whole situation, cut out the bad stuff, get back to a nub that works correctly, and then build it up again properly.
The OP is running Bionic according to /etc/apt/sources.list. It is not a good idea in general to ask a poster with problems like these to run apt update unless all the software sources have been looked at and sorted out in case there are additional errors, which there are in this case.
Yes, *in general*, but in this case the two non-bionic repos are single app repos providing packages that do not exist in Bionic. They will not break the OPs system.
You have several problems with your software sources. You are probably not, as one poster above says, running Ubuntu Xenial (16.04). You appear to be running Ubuntu Bionic (18.04).
It is not good for your system to have "mixed" repositories from different versions of a distro. Yours has repositories from Bionic, Xenial and Zesty.
Please enter the following commands to rectify the situation.
First, open the main software sources file in a text editor (replace gedit with your favourite text editor if relevant).
Code:
sudo gedit /etc/apt/sources.list
Then place a # symbol at the start of the deb cdrom line (which effectively comments it out) and save the file.
Repos: Active apt sources in file: /etc/apt/sources.list
a# deb cdrom:[Xubuntu 18.04.2 LTS _Bionic Beaver_ - Release i386 (20190210)]/ bionic main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
Active apt sources in file: /etc/apt/sources.list.d/teejee2008-ubuntu-ppa-bionic.list
deb http://ppa.launchpad.net/teejee2008/ppa/ubuntu bionic main
Repos: Active apt sources in file: /etc/apt/sources.list
a# deb cdrom:[Xubuntu 18.04.2 LTS _Bionic Beaver_ - Release i386 (20190210)]/ bionic main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
Active apt sources in file: /etc/apt/sources.list.d/teejee2008-ubuntu-ppa-bionic.list
deb http://ppa.launchpad.net/teejee2008/ppa/ubuntu bionic main
Ah, when I said "insert a # symbol", I didn't mean to insert "a#", I just meant "#". You need to edit the file as you did before and take out the "a" before the "#". Then run sudo apt update again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.