View Issue Details

IDProjectCategoryView StatusLast Update
0003132Kali LinuxKali Package Bugpublic2016-03-25 07:44
ReporterG3Cube Assigned Torhertzog  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
Product Version2016.1 
Summary0003132: Apt-get Upgrade produces errors
Description

First it was only fuse, then it was also udev. BAsically, upgrade shows errors. I have attached a screen shot.

Attached Files
Error Upgrading 030916.png (86,681 bytes)   
Error Upgrading 030916.png (86,681 bytes)   
boot.png (53,416 bytes)   
boot.png (53,416 bytes)   
initramfs-tools.tar.gz (1,328 bytes)
udev error.txt (1,256 bytes)   
root@kali:/var/lib/dpkg/info# dpkg --configure udev
Setting up udev (229-2) ...
+ update_hwdb
+ systemd-hwdb --usr update
+ addgroup --system input
addgroup: The group `input' already exists as a system group. Exiting.
+ [ -z 228-6 ]
+ upgrade_fixes configure 228-6
+ dpkg --compare-versions 228-6 lt 204-1
+ dpkg --compare-versions 228-6 lt 226-1
+ dpkg --compare-versions 228-6 lt-nl 220-7~
+ dpkg --compare-versions 228-6 lt-nl 226-2~
+ chrooted
+ stat -c %d/%i /
+ stat -Lc %d/%i /proc/1/root
+ [ 20/9796 = 20/9796 ]
+ return 1
+ can_start_udevd
+ [ ! -d /sys/class/ ]
+ return 0
+ handle_service_rename
+ dpkg --compare-versions  lt 204-1
+ [ -d /run/systemd/system ]
+ systemctl stop udev.service udev-control.socket udev-kernel.socket
+ true
+ [ -d /run/systemd/system ]
+ systemctl daemon-reload
+ invoke-rc.d udev restart
+ update_initramfs
+ [ -x /usr/sbin/update-initramfs -a -e /etc/initramfs-tools/initramfs.conf ]
+ update-initramfs -u
update-initramfs: deferring update (trigger activated)
cp: target ‘/lib/live/mount/medium/live/vmlinuz.new’ is not a directory
dpkg: error processing package udev (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 udev
udev error.txt (1,256 bytes)   
kernel.tar.gz (2,371 bytes)
apt.tar.gz (59,773 bytes)

Activities

G3Cube

G3Cube

2016-03-10 05:07

reporter   ~0004834

I should add: Running Live USB Encrypted Persistence 64-bit.

rhertzog

rhertzog

2016-03-10 08:13

administrator   ~0004835

Please attach an archive of the content of /etc/initramfs-tools:

tar zcf initramfs-tools.tar.gz /etc/initramfs-tools

And show us the content of /boot:

ls -alR /boot

Thank you.

G3Cube

G3Cube

2016-03-11 04:54

reporter   ~0004836

I have uploaded as you requested. Thanks for your help.

rhertzog

rhertzog

2016-03-11 08:56

administrator   ~0004837

Can you edit /var/lib/dpkg/info/udev.postinst and add "set -x" on the second line, and then run "dpkg --configure udev" and then send me the output?

I know that the underlying problem is some code getting confused by the fact that you have two kernels installed but at the same time but I can't figure out what code that is... I was hoping that it would be some initramfs hook but apparently not.

Can you also attach the tarball generated by "tar zcf kernel.tar.gz /etc/kernel" ? Thank you.

rhertzog

rhertzog

2016-03-18 11:16

administrator   ~0004983

Can you respond to my last queries? Thank you.

G3Cube

G3Cube

2016-03-18 12:28

reporter   ~0004984

Sorry, I replied to the email. I will attach the files here.

G3Cube

G3Cube

2016-03-18 12:30

reporter   ~0004985

udev.error.txt and kernel.tar.gz appear to be attached to this thread.

rhertzog

rhertzog

2016-03-18 13:24

administrator   ~0004986

So I understand your problem better now... the problem is that you do not have any initrd file for linux-image-4.4.0-kali1-amd64. I don't know why and how it happened. Do you have any idea? Was there an error when you installed that package? (You can try to lookup logs in /var/log/apt/*)

The modified update-initramfs in live-tools finds a single initrd file and thus believes that there's a single kernel image installed when in fact you have two.

To fix your issue you can try "apt --reinstall install linux-image-4.4.0-kali1-amd64" or simply "update-initramfs -c -k 4.4.0-kali1-amd64".

rhertzog

rhertzog

2016-03-22 16:05

administrator   ~0005006

Ping? Can you respond to my last queries? Thank you.

G3Cube

G3Cube

2016-03-23 12:30

reporter   ~0005010

Hi, sorry for the late reply. When I tried the first command, "apt --reinstall install linux-image-4.4.0-kali1-amd64" I received the following output:

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 420 not upgraded.
16 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for linux-image-4.4.0-kali1-amd64:amd64

When I tried the next command, "update-initramfs -c -k 4.4.0-kali1-amd64", I received the following output:

update-initramfs: Generating /boot/initrd.img-4.4.0-kali1-amd64
cryptsetup: WARNING: failed to detect canonical device of overlay
cryptsetup: WARNING: could not determine root device from /etc/fstab
live-boot: core filesystems devices utils udev wget blockdev ftpfs.

I will try the "apt-get update" and "apt-get upgrade" commands when I get back from work!

Talk to you later.

G3Cube

G3Cube

2016-03-24 04:32

reporter   ~0005012

Apt-get upgrade seemed to be fairly successful, although the last error quoted above repeated at the end of the upgrade:

update-initramfs: Generating /boot/initrd.img-4.4.0-kali1-amd64
cryptsetup: WARNING: failed to detect canonical device of overlay
cryptsetup: WARNING: could not determine root device from /etc/fstab
live-boot: core filesystems devices utils udev wget blockdev ftpfs.

rhertzog

rhertzog

2016-03-24 09:50

administrator   ~0005013

Please attach the content of /var/log/apt for inspection.

tar zcf apt.tar.gz /var/log/apt

G3Cube

G3Cube

2016-03-25 04:46

reporter   ~0005018

Your command line returned the following output:

root@kali:~# tar zcf apt.tar.gz /var/log/apt
tar: Removing leading `/' from member names

However, I opened a terminal window in the directory and ran a similar command. I will attach the file to this support thread.

rhertzog

rhertzog

2016-03-25 07:44

administrator   ~0005019

Thanks for the data, unfortunately there's nothing that explains why the initrd was gone missing for linux 4.4. So there's nothing to fix either. Closing the ticket.

Issue History

Date Modified Username Field Change
2016-03-10 05:05 G3Cube New Issue
2016-03-10 05:05 G3Cube File Added: Error Upgrading 030916.png
2016-03-10 05:07 G3Cube Note Added: 0004834
2016-03-10 08:13 rhertzog Note Added: 0004835
2016-03-10 08:13 rhertzog Assigned To => rhertzog
2016-03-10 08:13 rhertzog Status new => feedback
2016-03-11 04:52 G3Cube File Added: boot.png
2016-03-11 04:53 G3Cube File Added: initramfs-tools.tar.gz
2016-03-11 04:54 G3Cube Note Added: 0004836
2016-03-11 04:54 G3Cube Status feedback => assigned
2016-03-11 08:56 rhertzog Note Added: 0004837
2016-03-15 00:30 G3Cube File Added: udev error.txt
2016-03-15 01:01 G3Cube File Added: kernel.tar.gz
2016-03-18 11:16 rhertzog Note Added: 0004983
2016-03-18 11:16 rhertzog Status assigned => feedback
2016-03-18 12:28 G3Cube Note Added: 0004984
2016-03-18 12:28 G3Cube Status feedback => assigned
2016-03-18 12:30 G3Cube Note Added: 0004985
2016-03-18 13:24 rhertzog Note Added: 0004986
2016-03-18 13:24 rhertzog Status assigned => feedback
2016-03-22 16:05 rhertzog Note Added: 0005006
2016-03-23 12:30 G3Cube Note Added: 0005010
2016-03-23 12:30 G3Cube Status feedback => assigned
2016-03-24 04:32 G3Cube Note Added: 0005012
2016-03-24 09:50 rhertzog Note Added: 0005013
2016-03-24 09:52 rhertzog Status assigned => feedback
2016-03-25 04:46 G3Cube Note Added: 0005018
2016-03-25 04:46 G3Cube Status feedback => assigned
2016-03-25 04:46 G3Cube File Added: apt.tar.gz
2016-03-25 07:44 rhertzog Note Added: 0005019
2016-03-25 07:44 rhertzog Status assigned => closed
2016-03-25 07:44 rhertzog Resolution open => unable to reproduce