Ubuntu updater failed to download packages

Asked by Fredherico Silva on 2020-01-20

Following the procedure from https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure I have on terminal:

fredh@fredh-Aspire-E5-573G:~$ ubuntu-support-status
Support status summary of 'fredh-Aspire-E5-573G':

You have 7 packages (0.3%) that can not/no-longer be downloaded
You have 2350 packages (99.7%) that are unsupported

Run with --show-unsupported, --show-supported or --show-all to see more details
fredh@fredh-Aspire-E5-573G:~$ cat /etc/dpkg/dpkg.cfg.d/multiarch
cat: /etc/dpkg/dpkg.cfg.d/multiarch: No such file or directory
fredh@fredh-Aspire-E5-573G:~$ dpkg --print-foreign-architectures
i386
fredh@fredh-Aspire-E5-573G:~$ sudo grep -R roxy /etc/apt/*
[sudo] password for fredh:
fredh@fredh-Aspire-E5-573G:~$ sudo grep -R roxy /etc/apt/*
fredh@fredh-Aspire-E5-573G:~$ echo $http_proxy

fredh@fredh-Aspire-E5-573G:~$ echo $ftp_proxy

fredh@fredh-Aspire-E5-573G:~$ grep roxy /etc/bash.bashrc
fredh@fredh-Aspire-E5-573G:~$ grep roxy ~/.bashrc
fredh@fredh-Aspire-E5-573G:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
fredh@fredh-Aspire-E5-573G:~$ sudo fuser -vvv /var/lib/dpkg/lock
fredh@fredh-Aspire-E5-573G:~$ sudo fuser -vvv /var/cache/apt/archives/lock
fredh@fredh-Aspire-E5-573G:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.10
DISTRIB_CODENAME=cosmic
DISTRIB_DESCRIPTION="Ubuntu 18.10"
fredh@fredh-Aspire-E5-573G:~$ uname -a
Linux fredh-Aspire-E5-573G 4.18.0-25-generic #26-Ubuntu SMP Mon Jun 24 09:32:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
fredh@fredh-Aspire-E5-573G:~$ sudo rm /var/lib/apt/lists/lock
fredh@fredh-Aspire-E5-573G:~$ sudo rm /var/cache/apt/archives/lock
fredh@fredh-Aspire-E5-573G:~$ sudo rm /var/lib/dpkg/lock
fredh@fredh-Aspire-E5-573G:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
fredh@fredh-Aspire-E5-573G:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
fredh@fredh-Aspire-E5-573G:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status
fredh@fredh-Aspire-E5-573G:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
fredh@fredh-Aspire-E5-573G:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
cp: cannot stat '/var/lib/dpkg/available-old': No such file or directory
fredh@fredh-Aspire-E5-573G:~$ sudo rm -rf /var/lib/dpkg/updates/*
fredh@fredh-Aspire-E5-573G:~$ sudo rm -rf /var/lib/apt/lists
fredh@fredh-Aspire-E5-573G:~$ sudo rm /var/cache/apt/*.bin
fredh@fredh-Aspire-E5-573G:~$ sudo mkdir /var/lib/apt/lists
fredh@fredh-Aspire-E5-573G:~$ sudo mkdir /var/lib/apt/lists/partial
fredh@fredh-Aspire-E5-573G:~$ LANG=C;sudo apt-get clean
fredh@fredh-Aspire-E5-573G:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
fredh@fredh-Aspire-E5-573G:~$ sudo dpkg --configure -a
fredh@fredh-Aspire-E5-573G:~$ sudo dpkg --clear-avail
fredh@fredh-Aspire-E5-573G:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
fredh@fredh-Aspire-E5-573G:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
fredh@fredh-Aspire-E5-573G:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
fredh@fredh-Aspire-E5-573G:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Get:1 http://archive.ubuntu.com/ubuntu cosmic InRelease [242 kB]
Get:2 http://archive.ubuntu.com/ubuntu cosmic-updates InRelease [88,7 kB]
Get:3 http://archive.ubuntu.com/ubuntu cosmic-backports InRelease [74,6 kB]
Get:4 http://archive.ubuntu.com/ubuntu cosmic-security InRelease [88,7 kB]
Get:5 http://archive.ubuntu.com/ubuntu cosmic/main amd64 Packages [1.018 kB]
Get:6 http://archive.ubuntu.com/ubuntu cosmic/main i386 Packages [1.007 kB]
Get:7 http://archive.ubuntu.com/ubuntu cosmic/main Translation-en [513 kB]
Get:8 http://archive.ubuntu.com/ubuntu cosmic/main amd64 DEP-11 Metadata [475 kB]
Get:9 http://archive.ubuntu.com/ubuntu cosmic/main DEP-11 48x48 Icons [123 kB]
Get:10 http://archive.ubuntu.com/ubuntu cosmic/main DEP-11 64x64 Icons [238 kB]
Get:11 http://archive.ubuntu.com/ubuntu cosmic/restricted i386 Packages [9.564 B]
Get:12 http://archive.ubuntu.com/ubuntu cosmic/restricted amd64 Packages [9.304 B]
Get:13 http://archive.ubuntu.com/ubuntu cosmic/restricted Translation-en [3.888 B]
Get:14 http://archive.ubuntu.com/ubuntu cosmic/universe i386 Packages [8.755 kB]
Get:15 http://archive.ubuntu.com/ubuntu cosmic/universe amd64 Packages [8.803 kB]
Get:16 http://archive.ubuntu.com/ubuntu cosmic/universe Translation-en [5.063 kB]
Get:17 http://archive.ubuntu.com/ubuntu cosmic/universe amd64 DEP-11 Metadata [3.378 kB]
Get:18 http://archive.ubuntu.com/ubuntu cosmic/universe DEP-11 48x48 Icons [2.549 kB]
Get:19 http://archive.ubuntu.com/ubuntu cosmic/universe DEP-11 64x64 Icons [8.441 kB]
Get:20 http://archive.ubuntu.com/ubuntu cosmic/multiverse amd64 Packages [158 kB]
Get:21 http://archive.ubuntu.com/ubuntu cosmic/multiverse i386 Packages [147 kB]
Get:22 http://archive.ubuntu.com/ubuntu cosmic/multiverse Translation-en [113 kB]
Get:23 http://archive.ubuntu.com/ubuntu cosmic/multiverse amd64 DEP-11 Metadata [48,4 kB]
Get:24 http://archive.ubuntu.com/ubuntu cosmic/multiverse DEP-11 48x48 Icons [8.931 B]
Get:25 http://archive.ubuntu.com/ubuntu cosmic/multiverse DEP-11 64x64 Icons [218 kB]
Get:26 http://archive.ubuntu.com/ubuntu cosmic-updates/main i386 Packages [332 kB]
Get:27 http://archive.ubuntu.com/ubuntu cosmic-updates/main amd64 Packages [345 kB]
Get:28 http://archive.ubuntu.com/ubuntu cosmic-updates/main Translation-en [144 kB]
Get:29 http://archive.ubuntu.com/ubuntu cosmic-updates/main amd64 DEP-11 Metadata [150 kB]
Get:30 http://archive.ubuntu.com/ubuntu cosmic-updates/main DEP-11 48x48 Icons [34,7 kB]
Get:31 http://archive.ubuntu.com/ubuntu cosmic-updates/main DEP-11 64x64 Icons [64,6 kB]
Get:32 http://archive.ubuntu.com/ubuntu cosmic-updates/restricted amd64 Packages [4.284 B]
Get:33 http://archive.ubuntu.com/ubuntu cosmic-updates/restricted i386 Packages [4.260 B]
Get:34 http://archive.ubuntu.com/ubuntu cosmic-updates/restricted Translation-en [2.192 B]
Get:35 http://archive.ubuntu.com/ubuntu cosmic-updates/universe i386 Packages [692 kB]
Get:36 http://archive.ubuntu.com/ubuntu cosmic-updates/universe amd64 Packages [697 kB]
Get:37 http://archive.ubuntu.com/ubuntu cosmic-updates/universe Translation-en [195 kB]
Get:38 http://archive.ubuntu.com/ubuntu cosmic-updates/universe amd64 DEP-11 Metadata [97,4 kB]
Get:39 http://archive.ubuntu.com/ubuntu cosmic-updates/universe DEP-11 48x48 Icons [43,1 kB]
Get:40 http://archive.ubuntu.com/ubuntu cosmic-updates/universe DEP-11 64x64 Icons [132 kB]
Get:41 http://archive.ubuntu.com/ubuntu cosmic-updates/multiverse i386 Packages [3.904 B]
Get:42 http://archive.ubuntu.com/ubuntu cosmic-updates/multiverse amd64 Packages [3.744 B]
Get:43 http://archive.ubuntu.com/ubuntu cosmic-updates/multiverse Translation-en [1.736 B]
Get:44 http://archive.ubuntu.com/ubuntu cosmic-updates/multiverse amd64 DEP-11 Metadata [2.468 B]
Get:45 http://archive.ubuntu.com/ubuntu cosmic-updates/multiverse DEP-11 48x48 Icons [29 B]
Get:46 http://archive.ubuntu.com/ubuntu cosmic-updates/multiverse DEP-11 64x64 Icons [2.638 B]
Get:47 http://archive.ubuntu.com/ubuntu cosmic-backports/main i386 Packages [1.732 B]
Get:48 http://archive.ubuntu.com/ubuntu cosmic-backports/main amd64 Packages [1.736 B]
Get:49 http://archive.ubuntu.com/ubuntu cosmic-backports/main Translation-en [1.152 B]
Get:50 http://archive.ubuntu.com/ubuntu cosmic-backports/universe i386 Packages [3.992 B]
Get:51 http://archive.ubuntu.com/ubuntu cosmic-backports/universe amd64 Packages [3.996 B]
Get:52 http://archive.ubuntu.com/ubuntu cosmic-backports/universe Translation-en [1.368 B]
Get:53 http://archive.ubuntu.com/ubuntu cosmic-backports/universe amd64 DEP-11 Metadata [7.224 B]
Get:54 http://archive.ubuntu.com/ubuntu cosmic-backports/universe DEP-11 48x48 Icons [29 B]
Get:55 http://archive.ubuntu.com/ubuntu cosmic-backports/universe DEP-11 64x64 Icons [29 B]
Get:56 http://archive.ubuntu.com/ubuntu cosmic-security/main amd64 Packages [210 kB]
Get:57 http://archive.ubuntu.com/ubuntu cosmic-security/main i386 Packages [197 kB]
Get:58 http://archive.ubuntu.com/ubuntu cosmic-security/main Translation-en [84,1 kB]
Get:59 http://archive.ubuntu.com/ubuntu cosmic-security/main amd64 DEP-11 Metadata [26,5 kB]
Get:60 http://archive.ubuntu.com/ubuntu cosmic-security/main DEP-11 48x48 Icons [2.831 B]
Get:61 http://archive.ubuntu.com/ubuntu cosmic-security/main DEP-11 64x64 Icons [14,7 kB]
Get:62 http://archive.ubuntu.com/ubuntu cosmic-security/restricted amd64 Packages [4.284 B]
Get:63 http://archive.ubuntu.com/ubuntu cosmic-security/restricted i386 Packages [4.260 B]
Get:64 http://archive.ubuntu.com/ubuntu cosmic-security/restricted Translation-en [2.192 B]
Get:65 http://archive.ubuntu.com/ubuntu cosmic-security/universe i386 Packages [498 kB]
Get:66 http://archive.ubuntu.com/ubuntu cosmic-security/universe amd64 Packages [501 kB]
Get:67 http://archive.ubuntu.com/ubuntu cosmic-security/universe Translation-en [144 kB]
Get:68 http://archive.ubuntu.com/ubuntu cosmic-security/universe amd64 DEP-11 Metadata [31,4 kB]
Get:69 http://archive.ubuntu.com/ubuntu cosmic-security/universe DEP-11 48x48 Icons [11,4 kB]
Get:70 http://archive.ubuntu.com/ubuntu cosmic-security/universe DEP-11 64x64 Icons [80,4 kB]
Get:71 http://archive.ubuntu.com/ubuntu cosmic-security/multiverse amd64 Packages [3.744 B]
Get:72 http://archive.ubuntu.com/ubuntu cosmic-security/multiverse i386 Packages [3.904 B]
Get:73 http://archive.ubuntu.com/ubuntu cosmic-security/multiverse Translation-en [1.736 B]
Get:74 http://archive.ubuntu.com/ubuntu cosmic-security/multiverse amd64 DEP-11 Metadata [2.464 B]
Get:75 http://archive.ubuntu.com/ubuntu cosmic-security/multiverse DEP-11 48x48 Icons [29 B]
Get:76 http://archive.ubuntu.com/ubuntu cosmic-security/multiverse DEP-11 64x64 Icons [2.638 B]
Fetched 46,4 MB in 43s (1.078 kB/s)
Reading package lists... Done
fredh@fredh-Aspire-E5-573G:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Hit:1 http://archive.ubuntu.com/ubuntu cosmic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu cosmic-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu cosmic-backports InRelease
Hit:4 http://archive.ubuntu.com/ubuntu cosmic-security InRelease
Reading package lists... Done
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.
fredh@fredh-Aspire-E5-573G:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-ppa-cosmic.list

/etc/apt/sources.list.d/lutris.list

     1 # deb http://download.opensuse.org/repositories/home:/strycore/xUbuntu_18.10/ ./

/etc/apt/sources.list.d/vscode.list

     1 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
     2 # You may comment out this entry, but any other modifications may be lost.
     3 # deb [arch=amd64] http://packages.microsoft.com/repos/vscode stable main

/etc/apt/sources.list.d/strycore-ubuntu-ppa-cosmic.list

/etc/apt/sources.list.d/sunderme-ubuntu-texstudio-cosmic.list

     1 # deb http://ppa.launchpad.net/sunderme/texstudio/ubuntu cosmic main
     2 # deb-src http://ppa.launchpad.net/sunderme/texstudio/ubuntu cosmic main

/etc/apt/sources.list.d/ubuntu-toolchain-r-ubuntu-test-cosmic.list

     1 # deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu cosmic main
     2 # deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu cosmic main

/etc/apt/sources.list

     1 # deb cdrom:[Ubuntu 18.10 _Cosmic Cuttlefish_ - Release amd64 (20181017.3)]/ cosmic main restricted
     2
     3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4 # newer versions of the distribution.
     5 deb http://archive.ubuntu.com/ubuntu cosmic main restricted
     6 # deb-src http://br.archive.ubuntu.com/ubuntu/ cosmic main restricted
     7
     8 ## Major bug fix updates produced after the final release of the
     9 ## distribution.
    10 deb http://archive.ubuntu.com/ubuntu cosmic-updates main restricted
    11 # deb-src http://br.archive.ubuntu.com/ubuntu/ cosmic-updates main restricted
    12
    13 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    14 ## team. Also, please note that software in universe WILL NOT receive any
    15 ## review or updates from the Ubuntu security team.
    16 deb http://archive.ubuntu.com/ubuntu cosmic universe
    17 # deb-src http://br.archive.ubuntu.com/ubuntu/ cosmic universe
    18 deb http://archive.ubuntu.com/ubuntu cosmic-updates universe
    19 # deb-src http://br.archive.ubuntu.com/ubuntu/ cosmic-updates universe
    20
    21 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    22 ## team, and may not be under a free licence. Please satisfy yourself as to
    23 ## your rights to use the software. Also, please note that software in
    24 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    25 ## security team.
    26 deb http://archive.ubuntu.com/ubuntu cosmic multiverse
    27 # deb-src http://br.archive.ubuntu.com/ubuntu/ cosmic multiverse
    28 deb http://archive.ubuntu.com/ubuntu cosmic-updates multiverse
    29 # deb-src http://br.archive.ubuntu.com/ubuntu/ cosmic-updates multiverse
    30
    31 ## N.B. software from this repository may not have been tested as
    32 ## extensively as that contained in the main release, although it includes
    33 ## newer versions of some applications which may provide useful features.
    34 ## Also, please note that software in backports WILL NOT receive any review
    35 ## or updates from the Ubuntu security team.
    36 deb http://archive.ubuntu.com/ubuntu cosmic-backports main restricted universe multiverse
    37 # deb-src http://br.archive.ubuntu.com/ubuntu/ cosmic-backports main restricted universe multiverse
    38
    39 ## Uncomment the following two lines to add software from Canonical's
    40 ## 'partner' repository.
    41 ## This software is not part of Ubuntu, but is offered by Canonical and the
    42 ## respective vendors as a service to Ubuntu users.
    43 # deb http://archive.canonical.com/ubuntu cosmic partner
    44 # deb-src http://archive.canonical.com/ubuntu cosmic partner
    45
    46 deb http://archive.ubuntu.com/ubuntu cosmic-security main restricted
    47 # deb-src http://security.ubuntu.com/ubuntu cosmic-security main restricted
    48 deb http://archive.ubuntu.com/ubuntu cosmic-security universe
    49 # deb-src http://security.ubuntu.com/ubuntu cosmic-security universe
    50 deb http://archive.ubuntu.com/ubuntu cosmic-security multiverse
    51 # deb-src http://security.ubuntu.com/ubuntu cosmic-security multiverse
    52
    53 # This system was installed using small removable media
    54 # (e.g. netinst, live or single CD). The matching "deb cdrom"
    55 # entries were disabled at the end of the installation process.
    56 # For information about how to configure apt package sources,
    57 # see the sources.list(5) manual.
    58 # deb https://dl.winehq.org/wine-builds/ubuntu/ cosmic main
    59 # deb-src https://dl.winehq.org/wine-builds/ubuntu/ cosmic main
fredh@fredh-Aspire-E5-573G:~$ sudo dpkg --audit

Can nyone tell me what to do so I can update my system?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
2020-01-20
Last query:
2020-01-20
Last reply:
2020-01-20

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.10
DISTRIB_CODENAME=cosmic
DISTRIB_DESCRIPTION="Ubuntu 18.10"

https://wiki.ubuntu.com/Releases

Cosmic hasn't been supported since July 2019. There are no packages and no support for it.

What you are doing is like searching for updates for Windows 2000. There aren't any. The repos have all been removed.

I suggest you wipe the install of and do a clean install of Bionic (Ubuntu 18.04) which is LTS and supported until April 2023. It will also allow you to upgrade directly to Focal (Ubuntu 20.04) which is also LTS, when it is released in April this year (LTS to LTS upgrades are supported).

Fredherico Silva (fredhrs) said : #2

Thanks actionparsnip, that solved my question.

Fredherico Silva (fredhrs) said : #3

Thank you, I figured it was something like this.