You are viewing a single comment's thread from:
RE: I am having trouble updating Linux Mint -- Can anybody help?
PCME ~ # sudo apt update && sudo apt upgrade
E: Type '**' is not known on line 1 in source list /etc/apt/sources.list
E: The list of sources could not be read.
I cannot update or uprgade OS at all.
The
/etc/apt/sources.list
file should only contain lines starting with# deb cdrom:[
but in your case this line is the last line and all entry before this line is some random stuff. That is why the error says lineE: Type '**' is not known on line 1 in source list /etc/apt/sources.list
(note:line 1
).So lets try to clean up the unwanted stuff and put the last line to the
line 1
.sudo -s
/etc/apt/sources.list
sources.list
Wow thank you so much!!! this worked and I am extremely relieved! You're the best @bitbase
We should not give up on anything
I agree! Oh, should I run updates under root or not..?
Don't use root. Keep with
sudo
. Useroot
only if it is very compulsary and you have no other way of doing it (Like we edit thesources.list
file).So this is what I got.. a few err messages with it.
Err:1 http://packages.domain.com xenial InRelease
Could not connect to packages.domain.com:80 (127.0.0.1). - connect (111: Connection refused)
Ign:2 http://mirrors.evowise.com/linuxmint/packages sylvia InRelease
Hit:3 http://mirrors.evowise.com/linuxmint/packages sylvia Release
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Hit:5 http://archive.canonical.com/ubuntu xenial InRelease
Hit:6 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Hit:9 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Fetched 216 kB in 1s (134 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://packages.domain.com/dists/xenial/InRelease Could not connect to packages.domain.com:80 (127.0.0.1). - connect (111: Connection refused)
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Can you check if this still shows error?
Also give me the output of
cat /etc/apt/apt.conf
I can't figure out what the problem is. Keep me posted on any other problem you have about Linux, because it also help me develop my skills.
I'll try to find the source of this error and update you.
Thank you!
you are most welcome