ubuntuusers.de

linux-image-Reinstall (mnt, postinst)

Datum:
3. Februar 2013 15:42
Code:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
root@ubuntu:~# mount /dev/sda5 /mnt
root@ubuntu:~# mount -p bind /dev /mnt/dev
mount: argument to -p or --pass-fd must be a number
root@ubuntu:~# mount -o bind /dev /mnt/dev
root@ubuntu:~# mount -o bind /dev/pts /mnt/dev/pts
root@ubuntu:~# mount -o bind /sys /mnt/sys
root@ubuntu:~# mount -t proc /proc /mnt/proc
root@ubuntu:~# cp /proc/mounts /mnt/etc/mtab
root@ubuntu:~# chroot /mnt /bin/dash -i
# id
uid=0(root) gid=0(root) groups=0(root)
# apt-get install --reinstall linux-image-3.2.0-36-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dconf-gsettings-backend:i386 linux-headers-3.2.0-35 phonon libstartup-notification0:i386 libxmuu1:i386 libportaudio0:i386 libportaudio2:i386
  libgconf2-4:i386 lib32asound2 libgtk-3-0:i386 linux-headers-3.2.0-35-generic libpam-cap:i386 nethack-common libdconf0:i386 fuseiso libqt3-mt
  libpam-gnome-keyring:i386 libxcb-util0:i386
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-3.2.0-36-generic (3.2.0-36.57) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Not updating initrd symbolic links since we are being updated/reinstalled 
(3.2.0-36.57 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled 
(3.2.0-36.57 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.2.0-36-generic /boot/vmlinuz-3.2.0-36-generic
run-parts: failed to exec /etc/kernel/postinst.d/dkms: No such file or directory
run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.2.0-36-generic.postinst line 1010.
dpkg: error processing linux-image-3.2.0-36-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 linux-image-3.2.0-36-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
# file /etc/kernel/postinst.d/dkms
/etc/kernel/postinst.d/dkms: Bourne-Again shell script, ASCII text executable
#