Can't install anything, also do-release-upgrade does not work

Bug #1021643 reported by Andras Mocsary
6
This bug affects 1 person
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-openvz-053.5-h1 #2 SMP Mon Jun 11 09:52:55 CEST 2012 x86_64 GNU/Linux
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-openvz-049.6/
drwxr-xr-x 3 root root 4.0K 2012-03-09 14:23 2.6.32-openvz-049.6-i1/
drwxr-xr-x 3 root root 4.0K 2012-04-27 11:33 2.6.32-openvz-049.6-i2/
drwxr-xr-x 4 root root 4.0K 2012-05-29 11:10 2.6.32-openvz-049.6-i3/
drwxr-xr-x 3 root root 4.0K 2012-05-30 10:55 2.6.32-openvz-049.6-y1/
drwxr-xr-x 4 root root 4.0K 2012-05-30 11:42 2.6.32-openvz-053.5/
drwxr-xr-x 3 root root 4.0K 2012-06-11 09:55 2.6.32-openvz-053.5-h1/
root@trac:~#

root@trac:~# dpkg -l | grep -i linux-image
rc linux-image-2.6.32-28-generic 2.6.32-28.55 Linux kernel image for version
2.6.32 on x86
ii linux-image-2.6.32-29-virtual 2.6.32-29.58 Linux kernel image for version
2.6.32 on x86
iH linux-image-2.6.32-37-virtual 2.6.32-37.81 Linux kernel image for version
2.6.32 on x86
iH linux-image-2.6.32-39-virtual 2.6.32-39.86 Linux kernel image for version
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
          description: System 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
          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts
 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
             description: SCSI Disk
             product: ServeRAID M5014
             vendor: IBM
             physical id: 2.0.0
             bus info: scsi@0:2.0.0
             version: 2.12
             serial: 00a88136d8dc776b1750a01804b00506
             configuration: ansiversion=5
        *-disk:1 UNCLAIMED
             description: SCSI Disk
             product: ServeRAID M5014
             vendor: IBM
             physical id: 2.1.0
             bus info: scsi@0:2.1.0
             version: 2.12
             serial: 0013f9c2e4ae786b1750a01804b00506
             configuration: ansiversion=5
        *-disk:2 UNCLAIMED
             description: SCSI Disk
             product: ServeRAID M5014
             vendor: IBM
             physical id: 2.2.0
             bus info: scsi@0:2.2.0
             version: 2.12
             serial: 0091b18530482c6f1750a01804b00506
             configuration: ansiversion=5
     *-scsi:1
          physical id: 3
          bus info: pci@0000:04:00.1
          logical name: scsi9
          capabilities: emulated
        *-disk UNCLAIMED
             description: ATA Disk
             product: ST340014A
             vendor: Seagate
             physical id: 0.0.0
             bus info: scsi@9:0.0.0
             version: 8.10
             serial: 5JXG7A47
             configuration: ansiversion=5
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-2.6.32-37-virtual.
(Reading database ... 163003 files and directories currently installed.)
Preparing to replace linux-image-2.6.32-37-virtual 2.6.32-37.81 (using .../linux-image-2.6.32-37-virtual_2.6.32-37.81_am
d64.deb) ...
Done.
Unpacking replacement linux-image-2.6.32-37-virtual ...
dpkg: error processing /var/cache/apt/archives/linux-image-2.6.32-37-virtual_2.6.32-37.81_amd64.deb (--unpack):
 unable to securely remove '/lib/modules/2.6.32-37-server.dpkg-new': Read-only file system
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-2.6.32-39-virtual.
Preparing to replace linux-image-2.6.32-39-virtual 2.6.32-39.86 (using .../linux-image-2.6.32-39-virtual_2.6.32-39.86_am
d64.deb) ...
Done.
Unpacking replacement linux-image-2.6.32-39-virtual ...
dpkg: error processing /var/cache/apt/archives/linux-image-2.6.32-39-virtual_2.6.32-39.86_amd64.deb (--unpack):
 unable to securely remove '/lib/modules/2.6.32-39-server.dpkg-new': Read-only file system
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/apt/archives/linux-image-2.6.32-37-virtual_2.6.32-37.81_amd64.deb
 /var/cache/apt/archives/linux-image-2.6.32-39-virtual_2.6.32-39.86_amd64.deb
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-4ubuntu17.5) ...
update-rc.d: /etc/init.d/ondemand: file does not exist
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.img-2.6.32-39-server
Cannot find /lib/modules/2.6.32-39-server
update-initramfs: failed for /boot/initrd.img-2.6.32-39-server
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:~#

Tags: bot-comment
Revision history for this message
Andras Mocsary (amocsy) wrote :
Revision history for this message
Andras Mocsary (amocsy) wrote :
Revision history for this message
Andras Mocsary (amocsy) wrote :
Revision history for this message
Andras Mocsary (amocsy) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

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/FindRightPackage. 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.]

tags: added: bot-comment
Andras Mocsary (amocsy)
affects: ubuntu → update-manager (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.