Can't install anything, also do-release-upgrade does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I think, in an openVz container kernel, kernel modules, boot loader, direct device access and similar stuff is both pointless and not needed, because these are all handled by the hardware node.
Problem is, dpkg wants to install linux-image, initramfs-tools, initscripts and also would like to write /lib/modules, which is not writeable for OSes in an openVz container.
How can I tell it to:
- completely ignore these packages
- never try to write to /lib/modules or if it tryes it should not fail because of it
Here are some outputs:
root@trac:~# uname -a
Linux trac 2.6.32-
root@trac:~#
root@trac:~# ls -laph /lib/modules/
total 44K
drwxr-xr-x 9 root root 4.0K 2012-06-11 09:55 ./
drwxr-xr-x 16 root root 12K 2012-07-04 18:51 ../
drwxr-xr-x 3 root root 4.0K 2012-03-06 18:46 2.6.32-
drwxr-xr-x 3 root root 4.0K 2012-03-09 14:23 2.6.32-
drwxr-xr-x 3 root root 4.0K 2012-04-27 11:33 2.6.32-
drwxr-xr-x 4 root root 4.0K 2012-05-29 11:10 2.6.32-
drwxr-xr-x 3 root root 4.0K 2012-05-30 10:55 2.6.32-
drwxr-xr-x 4 root root 4.0K 2012-05-30 11:42 2.6.32-
drwxr-xr-x 3 root root 4.0K 2012-06-11 09:55 2.6.32-
root@trac:~#
root@trac:~# dpkg -l | grep -i linux-image
rc linux-image-
2.6.32 on x86
ii linux-image-
2.6.32 on x86
iH linux-image-
2.6.32 on x86
iH linux-image-
2.6.32 on x86
root@trac:~#
root@trac:~# lshw
trac
description: Computer
width: 64 bits
capabilities: vsyscall64 vsyscall32
*-core
description: Motherboard
physical id: 0
*-memory
physical id: 0
size: 2047MiB
*-cpu
product: Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz
vendor: Intel Corp.
physical id: 1
bus info: cpu@0
width: 64 bits
acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp x86-64 constant_tsc arch_perfmon pebs bts rep_good xtopology nons
top_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 popcnt lahf_lm ida tpr_shado
w vnmi flexpriority ept vpid
*-scsi:0
physical id: 2
bus info: pci@0000:01:00.0
logical name: scsi0
*-disk:0 UNCLAIMED
bus info: scsi@0:2.0.0
*-disk:1 UNCLAIMED
bus info: scsi@0:2.1.0
*-disk:2 UNCLAIMED
bus info: scsi@0:2.2.0
*-scsi:1
physical id: 3
bus info: pci@0000:04:00.1
logical name: scsi9
*-disk UNCLAIMED
bus info: scsi@9:0.0.0
root@trac:~#
root@trac:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid
root@trac:~#
root@trac:~# aptitude install kubuntu-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
The following partially installed packages will be configured:
initramfs-tools initscripts
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/25.1MB of archives. After unpacking 0B will be used.
Writing extended state information... Done
Selecting previously deselected package linux-image-
(Reading database ... 163003 files and directories currently installed.)
Preparing to replace linux-image-
d64.deb) ...
Done.
Unpacking replacement linux-image-
dpkg: error processing /var/cache/
unable to securely remove '/lib/modules/
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Could not find postrm hook script [update-grub].
Looked in: '/bin', '/sbin', '/usr/bin', '/usr/sbin'
Selecting previously deselected package linux-image-
Preparing to replace linux-image-
d64.deb) ...
Done.
Unpacking replacement linux-image-
dpkg: error processing /var/cache/
unable to securely remove '/lib/modules/
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Could not find postrm hook script [update-grub].
Looked in: '/bin', '/sbin', '/usr/bin', '/usr/sbin'
Errors were encountered while processing:
/var/cache/
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up initramfs-tools (0.92bubuntu78) ...
update-initramfs: deferring update (trigger activated)
Setting up initscripts (2.87dsf-
update-rc.d: /etc/init.
dpkg: error processing initscripts (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.
Cannot find /lib/modules/
update-initramfs: failed for /boot/initrd.
dpkg: error processing initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
initscripts
initramfs-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
root@trac:~#
affects: | ubuntu → update-manager (Ubuntu) |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1021643/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]