apt upgrade don't load new packages, for months

Asked by imker

Hi,

at the moment I face the problem that one of my Ubuntu 18.04 installations does not update any new packages since I have upgraded from 16.04 to 18.04.

Here the output of the upgrade commands:
root@abe:~# apt update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Hit:2 http://de.archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://de.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://de.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://de.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [369 kB]
Get:6 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [413 kB]
Get:7 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [567 kB]
Get:8 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [562 kB]
Fetched 2,158 kB in 2s (1,179 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
root@abe:~# apt upgrade
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.

So, as far as I can see there is no error reported and everything works fine. But the commands behave like this since I upgraded my installation to 18.04 at the beginning of September. And from my other Ubuntu 18.04 installations I know, there has been updates since then. So there is something wrong.

By the way. I never changed any configuration of apt. And I also did not add any package repositories on my own.

So do you have any Idea how to solve this issue and so I will get updates for this installation?
Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
imker
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the output of the following commands:

uname -a
lsb_release -crid
cat -n /etc/apt/sources.list

Revision history for this message
imker (imker) said :
#2

Hello,
as requested...

root@abe:~# uname -a
Linux abe 4.15.0-33-generic #36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
root@abe:~# lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
root@abe:~# cat -n /etc/apt/sources.list
     1 # deb http://de.archive.ubuntu.com/ubuntu/ precise main restricted
     2
     3 # deb http://de.archive.ubuntu.com/ubuntu/ precise-updates main restricted
     4 # deb http://security.ubuntu.com/ubuntu precise-security main restricted
     5
     6 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     7 # newer versions of the distribution.
     8 deb http://de.archive.ubuntu.com/ubuntu/ bionic main restricted
     9 deb-src http://de.archive.ubuntu.com/ubuntu/ bionic main restricted
    10
    11 ## Major bug fix updates produced after the final release of the
    12 ## distribution.
    13 deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
    14 deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
    15
    16 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    17 ## team. Also, please note that software in universe WILL NOT receive any
    18 ## review or updates from the Ubuntu security team.
    19 deb http://de.archive.ubuntu.com/ubuntu/ bionic universe
    20 deb-src http://de.archive.ubuntu.com/ubuntu/ bionic universe
    21 deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates universe
    22 deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates universe
    23
    24 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    25 ## team, and may not be under a free licence. Please satisfy yourself as to
    26 ## your rights to use the software. Also, please note that software in
    27 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    28 ## security team.
    29 deb http://de.archive.ubuntu.com/ubuntu/ bionic multiverse
    30 deb-src http://de.archive.ubuntu.com/ubuntu/ bionic multiverse
    31 deb http://de.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    32 deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
    33
    34 ## N.B. software from this repository may not have been tested as
    35 ## extensively as that contained in the main release, although it includes
    36 ## newer versions of some applications which may provide useful features.
    37 ## Also, please note that software in backports WILL NOT receive any review
    38 ## or updates from the Ubuntu security team.
    39 deb http://de.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
    40 deb-src http://de.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
    41
    42 deb http://security.ubuntu.com/ubuntu bionic-security main restricted
    43 deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
    44 deb http://security.ubuntu.com/ubuntu bionic-security universe
    45 deb-src http://security.ubuntu.com/ubuntu bionic-security universe
    46 deb http://security.ubuntu.com/ubuntu bionic-security multiverse
    47 deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
    48
    49 ## Uncomment the following two lines to add software from Canonical's
    50 ## 'partner' repository.
    51 ## This software is not part of Ubuntu, but is offered by Canonical and the
    52 ## respective vendors as a service to Ubuntu users.
    53 # deb http://archive.canonical.com/ubuntu precise partner
    54 # deb-src http://archive.canonical.com/ubuntu precise partner
    55
    56 ## Uncomment the following two lines to add software from Ubuntu's
    57 ## 'extras' repository.

Thanks

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Have you tried switching to the main package server?
Did you upgrade directly from Precise to Bionic in one jump?

Revision history for this message
imker (imker) said :
#4

1) No, I did never tried to switch to the main server. Do you think it will be worth to giver it a try?
2) Yes, I did the upgrade from 16.04 LTS to 18.04 LTS with one do-release-upgrade call.

By the way. I have several Ubuntu Server installations. I did the do-release-upgrade from 16.04 to 18.04 on all of them and only this installation shows this kind of problem.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Sure. Worth a shot

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

What is the output of the commands

apt-cache policy
apt-cache policy linux-image-generic

Revision history for this message
imker (imker) said :
#7

As requested:

root@abe:~# apt-cache policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://security.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages
     release v=18.04,o=Ubuntu,a=bionic-security,n=bionic,l=Ubuntu,c=multiverse,b=i386
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic-security,n=bionic,l=Ubuntu,c=multiverse,b=amd64
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages
     release v=18.04,o=Ubuntu,a=bionic-security,n=bionic,l=Ubuntu,c=universe,b=i386
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic-security,n=bionic,l=Ubuntu,c=universe,b=amd64
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages
     release v=18.04,o=Ubuntu,a=bionic-security,n=bionic,l=Ubuntu,c=main,b=i386
     origin security.ubuntu.com
 500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic-security,n=bionic,l=Ubuntu,c=main,b=amd64
     origin security.ubuntu.com
 100 http://de.archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages
     release v=18.04,o=Ubuntu,a=bionic-backports,n=bionic,l=Ubuntu,c=universe,b=i386
     origin de.archive.ubuntu.com
 100 http://de.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic-backports,n=bionic,l=Ubuntu,c=universe,b=amd64
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages
     release v=18.04,o=Ubuntu,a=bionic-updates,n=bionic,l=Ubuntu,c=multiverse,b=i386
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic-updates,n=bionic,l=Ubuntu,c=multiverse,b=amd64
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages
     release v=18.04,o=Ubuntu,a=bionic-updates,n=bionic,l=Ubuntu,c=universe,b=i386
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic-updates,n=bionic,l=Ubuntu,c=universe,b=amd64
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages
     release v=18.04,o=Ubuntu,a=bionic-updates,n=bionic,l=Ubuntu,c=restricted,b=i386
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic-updates,n=bionic,l=Ubuntu,c=restricted,b=amd64
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages
     release v=18.04,o=Ubuntu,a=bionic-updates,n=bionic,l=Ubuntu,c=main,b=i386
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic-updates,n=bionic,l=Ubuntu,c=main,b=amd64
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages
     release v=18.04,o=Ubuntu,a=bionic,n=bionic,l=Ubuntu,c=multiverse,b=i386
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic,n=bionic,l=Ubuntu,c=multiverse,b=amd64
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
     release v=18.04,o=Ubuntu,a=bionic,n=bionic,l=Ubuntu,c=universe,b=i386
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic,n=bionic,l=Ubuntu,c=universe,b=amd64
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu bionic/restricted i386 Packages
     release v=18.04,o=Ubuntu,a=bionic,n=bionic,l=Ubuntu,c=restricted,b=i386
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic,n=bionic,l=Ubuntu,c=restricted,b=amd64
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu bionic/main i386 Packages
     release v=18.04,o=Ubuntu,a=bionic,n=bionic,l=Ubuntu,c=main,b=i386
     origin de.archive.ubuntu.com
 500 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic,n=bionic,l=Ubuntu,c=main,b=amd64
     origin de.archive.ubuntu.com
Pinned packages:
root@abe:~# apt-cache policy linux-image-generic
linux-image-generic:
  Installed: (none)
  Candidate: 4.15.0.38.40
  Version table:
     4.15.0.38.40 500
        500 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
     4.15.0.36.38 500
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
     4.15.0.20.23 500
        500 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

Revision history for this message
imker (imker) said :
#8

Well, I think I got the answer. The problem is that apt thinks there is no Kernel installed. And so there is no newer version.
In the end it will not download the update.

apt-get install linux-image-generic linux-headers-generic
Solved the problem

root@abe:~# apt-cache policy linux-image-generic
linux-image-generic:
  Installed: 4.15.0.38.40
  Candidate: 4.15.0.38.40
  Version table:
 *** 4.15.0.38.40 500
        500 http://de.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     4.15.0.36.38 500
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
     4.15.0.20.23 500
        500 http://de.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

Nice
Thanks a lot