You are viewing a single comment's thread from:

RE: I am having trouble updating Linux Mint -- Can anybody help?

in #linux6 years ago

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 line E: 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.

  1. switch to root sudo -s
  2. make a copy of /etc/apt/sources.list
    cp /etc/apt/sources.list /etc/apt/sources.list_backup
    
  3. edit sources.list
    echo "#deb cdrom:[Linux Mint 18.3 _Sylvia_ - Release amd64 20171124]/ xenial contrib main non-free" > /etc/apt/sources.list
    
  4. update the system
    apt update && apt upgrade
    
Sort:  

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. Use root only if it is very compulsary and you have no other way of doing it (Like we edit the sources.list file).

So this is what I got.. a few err messages with it.

apt update && apt upgrade

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

 jesuscoins@PCME ~ $ cat /etc/apt/apt.conf
 cat: /etc/apt/apt.conf: No such file or directory
 jesuscoins@PCME ~ $ clear
 jesuscoins@PCME ~ $ sudo -s
 [sudo] password for jesuscoins: 
 PCME ~ # cat /etc/apt/apt.conf
 cat: /etc/apt/apt.conf: No such file or directory

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.

you are most welcome

Coin Marketplace

STEEM 0.17
TRX 0.16
JST 0.029
BTC 61129.24
ETH 2376.01
USDT 1.00
SBD 2.54