[Bug 1021643] Re: Can't install anything, also do-release-upgrade does not work
Andras Mocsary
amocsy at gmail.com
Fri Jul 6 12:48:00 UTC 2012
** Package changed: ubuntu => update-manager (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1021643
Title:
Can't install anything, also do-release-upgrade does not work
Status in “update-manager” package in Ubuntu:
New
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 at 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 at trac:~#
root at 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 at trac:~#
root at 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 at trac:~#
root at 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 at 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 at 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 at 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 at 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 at 0:2.2.0
version: 2.12
serial: 0091b18530482c6f1750a01804b00506
configuration: ansiversion=5
*-scsi:1
physical id: 3
bus info: pci at 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 at 9:0.0.0
version: 8.10
serial: 5JXG7A47
configuration: ansiversion=5
root at trac:~#
root at trac:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid
root at trac:~#
root at 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 at trac:~#
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1021643/+subscriptions
More information about the foundations-bugs
mailing list