package linux-headers-4.15.0-62 (not installed) failed to install/upgrade: package linux-headers-4.15.0-62 is not ready for configuration cannot configure (current status 'half-installed')

Asked by Mark Poirier

happened with autoremove

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: linux-headers-4.15.0-62 (not installed)
ProcVersionSignature: Ubuntu 4.15.0-65.74~16.04.1-generic 4.15.18
Uname: Linux 4.15.0-65-generic i686
ApportVersion: 2.20.1-0ubuntu2.19
AptOrdering:
 linux-headers-4.15.0-62: Configure
 NULL: ConfigurePending
Architecture: i386
Date: Wed Oct 2 18:58:56 2019
ErrorMessage: package linux-headers-4.15.0-62 is not ready for configuration cannot configure (current status 'half-installed')
InstallationDate: Installed on 2018-12-02 (304 days ago)
InstallationMedia: Ubuntu-MATE 16.04.5 LTS "Xenial Xerus" - Release i386 (20180731)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.6
 apt 1.2.32
SourcePackage: linux-hwe
Title: package linux-headers-4.15.0-62 (not installed) failed to install/upgrade: package linux-headers-4.15.0-62 is not ready for configuration cannot configure (current status 'half-installed')
UpgradeStatus: No upgrade log present (probably fresh install)

Question information

Revision history for this message
Bashing-om (bashing-om) said :
#1

Converted to a question as this is a system configuration issue.

I will see you there.

Revision history for this message
Bashing-om (bashing-om) said :
#2

Hello Mark Poirie -

This issue is a config issue, does not appear to be a bug.

As we have " (current status 'half-installed')"
show us what the state is of what kernels are installed:
post back:
dpkg -l | grep linux-
ls -al /boot/
uname -r
df -h

-see what direction the fix takes-

Revision history for this message
Mark Poirier (nailset) said :
#3

ubuntu@pine64:~$ dpkg -l | grep linux-
ii linux-base 4.5ubuntu1~16.04.1 all Linux image base package
ii linux-firmware 1.157.22 all Firmware for Linux kernel drivers
ii linux-headers-4.4.0-165 4.4.0-165.193 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-165-generic 4.4.0-165.193 arm64 Linux kernel headers for version 4.4.0 on ARMv8 SMP
ii linux-headers-generic 4.4.0.165.173 arm64 Generic Linux kernel headers
ii linux-libc-dev:arm64 4.4.0-165.193 arm64 Linux Kernel Headers for development
ii linux-sound-base 1.0.25+dfsg-0ubuntu5 all base package for ALSA and OSS sound systems

ubuntu@pine64:~$ ls -al /boot/
total 1102
drwxr-xr-x 4 root root 16384 Dec 31 1969 .
drwxr-xr-x 20 root root 4096 Jan 7 2019 ..
-rwxr-xr-x 1 root root 1100357 Dec 12 2016 initrd.img
drwxr-xr-x 2 root root 2048 Dec 12 2016 pine64
drwxr-xr-x 2 root root 2048 Dec 13 2016 System Volume Information
-rwxr-xr-x 1 root root 137 Dec 12 2016 uEnv.txt

ubuntu@pine64:~$ uname -r
3.10.104

ubuntu@pine64:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p2 29G 14G 14G 51% /
devtmpfs 962M 0 962M 0% /dev
tmpfs 995M 256K 995M 1% /dev/shm
tmpfs 995M 18M 978M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 995M 0 995M 0% /sys/fs/cgroup
/dev/mmcblk0p1 50M 13M 38M 25% /boot
tmpfs 199M 44K 199M 1% /run/user/1000

Revision history for this message
Bashing-om (bashing-om) said :
#4

Mark Poirier - Huh ??

The original report shows " Package: linux-headers-4.15.0-62 (not installed)" ; Yet !
1) no such kernel versions exist on this system -
2) Booting 3.10.104 - that has not existed for ubuntu in ages and ages
3) No versioned image in /boot
4) no kernels shown in /boot

Huh ?
Please advise what system we are looKing at, Surely not an ubuntu desktop or server ?

-sometimes I do wonder-

Revision history for this message
Mark Poirier (nailset) said :
#5

Obviously, I know next to nothing re linux. This is Ubuntu 16.04 on a Pine 64 board. It had been working perfectly for a few years, always system-updated although not that frequently. I was trying to follow instructions from several sources on how to install a driver for a new wifi adapter (rtl8812au) when the program error message popped up.

Revision history for this message
Bashing-om (bashing-om) said :
#6

Mark Poirier;

regrets, but if post #3 is from the Ubuntu [16.04] on a Pine 64 board - then I do not have the experience to advise.
Perhaps others here can assist.

Can not relate this to a "normal" install.

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

Your output is contradictory.

In the bug report:
Uname: Linux 4.15.0-65-generic i686
In the answer to bashing-om:
uname -r: 3.10.104

In an attachment of the bug Report:
Found linux image: /boot/vmlinuz-4.15.0-65-generic
Found initrd image: /boot/initrd.img-4.15.0-65-generic
Found linux image: /boot/vmlinuz-4.15.0-64-generic
Found initrd image: /boot/initrd.img-4.15.0-64-generic
In the answer to bashing-om:
No /boot/vmlinuz* and /boot/initrd.img-4.* found

The output of "dpkg -l | grep linux-" does not show any installed kernel package (linux-image-*)!

For diagnostic purposes please provide the output of the following commands, and make sure that you run them on the system in question:

uname -a
lsb_release -crid
dpkg -l | grep ' linux-'
sudo dpkg --audit

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

What's the full output of:

sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dust-upgrade

Thanks

Revision history for this message
Mark Poirier (nailset) said :
#9

ubuntu@pine64:~$ sudo apt-get clean
ubuntu@pine64:~$ sudo apt-get update
Hit:1 http://ppa.launchpad.net/longsleep/ubuntu-pine64-flavour-makers/ubuntu xenial InRelease
Hit:2 http://ports.ubuntu.com xenial InRelease
Get:3 http://ports.ubuntu.com xenial-updates InRelease [109 kB]
Get:4 http://ports.ubuntu.com xenial-security InRelease [109 kB]
Hit:5 http://ports.ubuntu.com xenial-backports InRelease
Get:6 http://ports.ubuntu.com xenial-updates/main Sources [340 kB]
Get:7 http://ports.ubuntu.com xenial-updates/universe Sources [262 kB]
Get:8 http://ports.ubuntu.com xenial-updates/main arm64 Packages [733 kB]
Get:9 http://ports.ubuntu.com xenial-updates/main armhf Packages [782 kB]
Get:10 http://ports.ubuntu.com xenial-updates/main Translation-en [405 kB]
Get:11 http://ports.ubuntu.com xenial-updates/universe arm64 Packages [701 kB]
Get:12 http://ports.ubuntu.com xenial-updates/universe armhf Packages [683 kB]
Get:13 http://ports.ubuntu.com xenial-updates/universe Translation-en [321 kB]
Fetched 4,445 kB in 8s (527 kB/s)
Reading package lists... Done

ubuntu@pine64:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  tzdata
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 168 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]

Get:1 http://ports.ubuntu.com xenial-updates/main arm64 tzdata all 2019c-0ubuntu0.16.04 [168 kB]
Fetched 168 kB in 0s (224 kB/s)
Preconfiguring packages ...
(Reading database ... 253991 files and directories currently installed.)
Preparing to unpack .../tzdata_2019c-0ubuntu0.16.04_all.deb ...
Unpacking tzdata (2019c-0ubuntu0.16.04) over (2019b-0ubuntu0.16.04) ...
Setting up tzdata (2019c-0ubuntu0.16.04) ...

Current default time zone: 'America/Halifax'
Local time is now: Fri Oct 4 13:20:41 ADT 2019.
Universal Time is now: Fri Oct 4 16:20:41 UTC 2019.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

ubuntu@pine64:~$ sudo apt-get dist-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.
ubuntu@pine64:~$

Revision history for this message
Mark Poirier (nailset) said :
#10

ubuntu@pine64:~$ uname -a
Linux pine64 3.10.104 #13 SMP PREEMPT Mon Dec 12 15:00:06 MYT 2016 aarch64 aarch64 aarch64 GNU/Linux

ubuntu@pine64:~$ lsb_release -cnd
Usage: lsb_release [options]

lsb_release: error: no such option: -n

ubuntu@pine64:~$ lsb_release -cd
Description: Ubuntu 16.04.6 LTS
Codename: xenial

ubuntu@pine64:~$ dpkg -l | grep ' linux-'
ii linux-base 4.5ubuntu1~16.04.1 all Linux image base package
ii linux-firmware 1.157.22 all Firmware for Linux kernel drivers
ii linux-headers-4.4.0-165 4.4.0-165.193 all Header files related to Linux kernel version 4.4.0
ii linux-headers-4.4.0-165-generic 4.4.0-165.193 arm64 Linux kernel headers for version 4.4.0 on ARMv8 SMP
ii linux-headers-generic 4.4.0.165.173 arm64 Generic Linux kernel headers
ii linux-libc-dev:arm64 4.4.0-165.193 arm64 Linux Kernel Headers for development
ii linux-sound-base 1.0.25+dfsg-0ubuntu5 all base package for ALSA and OSS sound systems

ubuntu@pine64:~$ sudo dpkg --audit
ubuntu@pine64:~$

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

Looks OK as far as I can see....

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

The output of "apt update" etc. indeed does not show problems, but the kernel version that you are running (3.10.104 from December 2016) and missing kernel packages are very strange.

What output do you receive for the command

apt --simulate install linux-image-generic

Revision history for this message
Mark Poirier (nailset) said :
#13

ubuntu@pine64:~$ sudo apt --simulate install linux-image-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  devio flash-kernel linux-image-4.4.0-165-generic linux-modules-4.4.0-165-generic
Suggested packages:
  u-boot-tools fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools
The following NEW packages will be installed:
  devio flash-kernel linux-image-4.4.0-165-generic linux-image-generic
  linux-modules-4.4.0-165-generic
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Inst devio (1.2-1build2 Ubuntu:16.04/xenial [arm64])
Inst flash-kernel (3.0~rc.4ubuntu62.2 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [arm64])
Inst linux-modules-4.4.0-165-generic (4.4.0-165.193 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [arm64])
Inst linux-image-4.4.0-165-generic (4.4.0-165.193 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [arm64])
Inst linux-image-generic (4.4.0.165.173 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [arm64])
Conf devio (1.2-1build2 Ubuntu:16.04/xenial [arm64])
Conf flash-kernel (3.0~rc.4ubuntu62.2 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [arm64])
Conf linux-modules-4.4.0-165-generic (4.4.0-165.193 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [arm64])
Conf linux-image-4.4.0-165-generic (4.4.0-165.193 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [arm64])
Conf linux-image-generic (4.4.0.165.173 Ubuntu:16.04/xenial-updates, Ubuntu:16.04/xenial-security [arm64])
ubuntu@pine64:~$

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

And what is the output of

apt --simulate install linux-image-generic-hwe-16.04 linux-headers-generic-hwe-16.04

Revision history for this message
Launchpad Janitor (janitor) said :
#15

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.