[SOLVED] Cant run sudo apt-get update command
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
[SOLVED] Cant run sudo apt-get update command
I tried running the sudo apt-get update command from the terminal and I get this error 'E: Malformed entry 1 in list file /etc/apt/sources.list.d/additional-repositories.list (Component)
E: The list of sources could not be read.'
Anybody with the solution please help.
E: The list of sources could not be read.'
Anybody with the solution please help.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Cant run sudo apt-get update command
Hi Mathews,E: Malformed entry 1 in list file /etc/apt/sources.list.d/additional-repositories.list (Component)
E: The list of sources could not be read.
Could you run
cat /etc/apt/sources.list.d/additional-repositories.list
in a terminal and post the output?Re: Cant run sudo apt-get update command
Just open 'Software Scources'/PPAs and temporarily deselect all the added PPAs
Then do your updates:
After your Mint updates you can reselect the PPAs one by one to find the offender.
One bad apple spoils the barrel
Then do your updates:
apt update
After your Mint updates you can reselect the PPAs one by one to find the offender.
One bad apple spoils the barrel
Everything in life was difficult before it became easy.
Re: Cant run sudo apt-get update command
This is the output
Code: Select all
cat /etc/apt/sources.list.d/additional-repositories.list
deb https://dl.winehq.orq/wine-builds/ubuntu/xenial main
deb https://dl.winehq.org/wine-builds/ubuntu/xenialmain
deb https://dl.winehq.org/wine-builds/ubuntu/xenial main
Re: Cant run sudo apt-get update command
I don’t really have any added PPAs
Re: Cant run sudo apt-get update command
Alright, run:
Code: Select all
gksudo xed /etc/apt/sources.list.d/additional-repositories.list
Next run:
Code: Select all
sudo apt-get update
Re: Cant run sudo apt-get update command
Are you sure? Because that Wine PPA sure looks like an added PPA to me.
If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
Re: Cant run sudo apt-get update command
There seems to be a "subtle" difference between a "PPA" and an "Additional repository". A "PPA" is hosted by Launchpad, the software collaboration platform created by Canonical. On the other hand, any software developer can host his/her/its own repository providing .deb packages to be installed by the users. Like Oracle providing Virtualbox.
When you add a PPA to your system, like
sudo add-apt-repository ppa:libreoffice/ppa
, the PPA's verification key will be added automatically to the system. When you add a repository as "Additional", like:
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
you would need to instruct the system explicitly to fetch and add the key:
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
This is probably why they show under two different tabs in Software Sources.
In this case, it is about an "Additional repository" and not a "PPA"
What are Repositories?
Re: Cant run sudo apt-get update command
Hello, Mathews.
The content of the file should /etc/apt/sources.list.d/additional-repositories.list read
I.e. the same malformed entry, malformed in different way partially, is present 3 times.
Keep only the first line and add the missing space before the nickname xenial.
Cheers,
Karl
The content of the file should /etc/apt/sources.list.d/additional-repositories.list read
Code: Select all
deb https://dl.winehq.orq/wine-builds/ubuntu/ xenial main
Keep only the first line and add the missing space before the nickname xenial.
Cheers,
Karl
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 771 days now.
Lifeline
Re: Cant run sudo apt-get update command
Nice catch, Karl!
Thanks!
Thanks!
deb https://dl.winehq.orq/wine-builds/ubuntu/ xenial main
Re: Cant run sudo apt-get update command
Thanks, that's good information!Marziano wrote: ⤴Sun Jun 24, 2018 10:59 am There seems to be a "subtle" difference between a "PPA" and an "Additional repository". A "PPA" is hosted by Launchpad, the software collaboration platform created by Canonical. On the other hand, any software developer can host his/her/its own repository providing .deb packages to be installed by the users. Like Oracle providing Virtualbox.
(...)
If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
Re: [SOLVED] Cant run sudo apt-get update command
<moderator on> Split off new name resolution problem into new thread here: "apt-get update" fails with "could resolve name" </moderator off>
The people of Alderaan have been bravely fighting back the clone warriors sent out by the unscrupulous Sith Lord Palpatine for 771 days now.
Lifeline