1

I want to upgrade my system, but I'm facing these problems:

  1. Whenever I press on software updater nothing happens and sometimes I get an error report.
  2. sudo apt update gives me this:

    Reading state information... Done
    1363 packages can be upgraded. Run 'apt list --upgradable' to see them.
    W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:2
    W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:2
    W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:2
    W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:2
    W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:2
    W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:2
    W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:2
    W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:2
    W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:2
    W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:2
    W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:2
    W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:2
    W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:2
    W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:2
    
  3. sudo apt upgrade gives me this:

    1116 upgraded, 195 newly installed, 0 to remove and 247 not upgraded.
    Need to get 85.1 kB/552 MB of archives.
    After this operation, 668 MB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Err:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 libproxy1-plugin-networkmanager amd64 0.4.15-1
      400  Bad URI [IP: 91.189.88.162 80]
    Err:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libproxy1-plugin-gsettings amd64 0.4.15-1
      400  Bad URI [IP: 91.189.88.162 80]
    Err:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 libproxy1v5 amd64 0.4.15-1
      400  Bad URI [IP: 91.189.88.162 80]
    Err:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmbim-proxy amd64 1.14.2-2.1ubuntu1
      400  Bad URI [IP: 91.189.88.162 80]
    Err:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 libqmi-proxy amd64 1.18.0-3ubuntu1
      400  Bad URI [IP: 91.189.88.162 80]
    E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libp/libproxy/libproxy1-plugin-networkmanager_0.4.15-1_amd64.deb  400  Bad URI [IP: 91.189.88.162 80]
    
    E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libp/libproxy/libproxy1-plugin-gsettings_0.4.15-1_amd64.deb  400  Bad URI [IP: 91.189.88.162 80]
    
    E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libp/libproxy/libproxy1v5_0.4.15-1_amd64.deb  400  Bad URI [IP: 91.189.88.162 80]
    
    E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libm/libmbim/libmbim-proxy_1.14.2-2.1ubuntu1_amd64.deb  400  Bad URI [IP: 91.189.88.162 80]
    
    E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libq/libqmi/libqmi-proxy_1.18.0-3ubuntu1_amd64.deb  400  Bad URI [IP: 91.189.88.162 80]
    
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    

and cat /etc/apt/sources.list give me this:

deb http://archive.canonical.com/ubuntu xenial partner

as an edit to this question: cat /etc/apt/sources.list give me this:

# deb http://ftp.oleane.net/ubuntu/ bionic-updates main restricted universe multiverse # disabled on upgrade to bionic
# deb http://ftp.oleane.net/ubuntu/ bionic-backports main restricted universe multiverse # disabled on upgrade to bionic
# deb http://ftp.oleane.net/ubuntu/ bionic-security main restricted universe multiverse # disabled on upgrade to bionic
deb http://archive.canonical.com/ubuntu bionic partner
deb http://archive.ubuntu.com/ubuntu bionic main
deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse # auto generated by ubuntu-release-upgrader
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse # auto generated by ubuntu-release-upgrader
deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse # auto generated by ubuntu-release-upgrader
deb http://archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse # auto generated by ubuntu-release-upgrader

Any help is appreciated.

karel
  • 122,292
  • 133
  • 301
  • 332

2 Answers2

1

It looks like your sources.list might be pretty messed up. I suspect you have at least one of the ppa's mis-configured and this is preventing apt from downloading the sources from the correct locations.

I'd recommend you download the default ources.list file from here. Next, find your sources.list file; usually this is located at /etc/apt/sources.list. I'd recommend you rename your current file to something like sources.list.bak and then attempt to run apt with the default sources.list as below.

mv sources.list sources.list.bak
cp path/to/downloaded/sources.list sources.list
sudo apt update
sudo apt upgrade

The default sources.list will not have access to any of the software that you installed from custom ppa's but it should allow you to update was is necessary in the toolchain and then allow you to upgrade. Since you are upgrading these ppa's would need to be added again anyway. Good luck!

1

This issue is almost related to connectivity of the server you are attempting download from. please check the connectivity with the server or change the repository link, and share the result here.

f_y
  • 11