[Bug 925024] Re: apparmor makes it impossible to install postgresql-common on Precise
Gary Poster
gary.poster at canonical.com
Wed Feb 1 21:14:59 UTC 2012
apport information
** Tags added: apport-collected running-unity
** Description changed:
Repro:
$ sudo lxc-create -t ubuntu -n precise -f /etc/lxc/local.conf -- -r precise -a i686 -b gary
$ sudo lxc-start -n precise
[log in as root]
root at precise:~# apt-get install postgresql-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
openssl postgresql-client-common ssl-cert
Suggested packages:
ca-certificates openssl-blacklist
The following NEW packages will be installed:
openssl postgresql-client-common postgresql-common ssl-cert
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 643 kB of archives.
After this operation, 1618 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://archive.ubuntu.com/ubuntu/ precise/main openssl i386 1.0.0e-3ubuntu1 [510 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ precise/main postgresql-client-common all 128 [25.6 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ precise/main ssl-cert all 1.0.28 [12.2 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ precise/main postgresql-common all 128 [94.9 kB]
Fetched 643 kB in 1s (482 kB/s)
Preconfiguring packages ...
Selecting previously unselected package openssl.
(Reading database ... 12500 files and directories currently installed.)
Unpacking openssl (from .../openssl_1.0.0e-3ubuntu1_i386.deb) ...
Selecting previously unselected package postgresql-client-common.
Unpacking postgresql-client-common (from .../postgresql-client-common_128_all.deb) ...
Selecting previously unselected package ssl-cert.
Unpacking ssl-cert (from .../ssl-cert_1.0.28_all.deb) ...
Selecting previously unselected package postgresql-common.
Unpacking postgresql-common (from .../postgresql-common_128_all.deb) ...
Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common'
dpkg: unrecoverable fatal error, aborting:
failed to fstat previous diversions file: No such file or directory
E: Sub-process /usr/bin/dpkg returned an error code (2)
Workaround (thanks to wgrant):
sudo ln -s /etc/apparmor.d/usr.bin.lxc-start /etc/apparmor.d/disable/
sudo apparmor_parser -R /etc/apparmor.d/usr.bin.lxc-start
Then it should work.
Ideally we'd be able to keep apparmor involved.
+ ---
+ AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
+ ApportVersion: 1.91-0ubuntu1
+ Architecture: amd64
+ ArecordDevices:
+ **** List of CAPTURE Hardware Devices ****
+ card 0: NVidia [HDA NVidia], device 0: Cirrus Analog [Cirrus Analog]
+ Subdevices: 1/1
+ Subdevice #0: subdevice #0
+ AudioDevicesInUse:
+ USER PID ACCESS COMMAND
+ /dev/snd/controlC0: gary 1953 F.... pulseaudio
+ CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
+ Card0.Amixer.info:
+ Card hw:0 'NVidia'/'HDA NVidia at 0xe7480000 irq 21'
+ Mixer name : 'Cirrus Logic CS4206'
+ Components : 'HDA:10134206,106b4b00,00100301'
+ Controls : 18
+ Simple ctrls : 9
+ CurrentDmesg:
+ Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'] failed with exit code 1: comm: /var/log/dmesg: Permission denied
+ dmesg: write failed: Broken pipe
+ DistroRelease: Ubuntu 12.04
+ MachineType: Apple Inc. MacBookPro5,3
+ NonfreeKernelModules: wl nvidia
+ Package: lxc 0.7.5-3ubuntu16
+ PackageArchitecture: amd64
+ ProcEnviron:
+ PATH=(custom, user)
+ SHELL=/bin/bash
+ ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-12-generic root=UUID=44d3af31-0b7b-42d9-a0ff-d3cfb63f282d ro quiet splash vt.handoff=7
+ ProcVersionSignature: Ubuntu 3.2.0-12.21-generic 3.2.2
+ Tags: precise running-unity precise running-unity
+ Uname: Linux 3.2.0-12-generic x86_64
+ UpgradeStatus: Upgraded to precise on 2012-01-23 (9 days ago)
+ UserGroups: libvirtd sudo
+ WifiSyslog:
+
+ dmi.bios.date: 06/15/09
+ dmi.bios.vendor: Apple Inc.
+ dmi.bios.version: MBP53.88Z.00AC.B03.0906151647
+ dmi.board.asset.tag: Base Board Asset Tag#
+ dmi.board.name: Mac-F22587C8
+ dmi.board.vendor: Apple Inc.
+ dmi.chassis.asset.tag: Asset Tag#
+ dmi.chassis.type: 10
+ dmi.chassis.vendor: Apple Inc.
+ dmi.chassis.version: Mac-F22587C8
+ dmi.modalias: dmi:bvnAppleInc.:bvrMBP53.88Z.00AC.B03.0906151647:bd06/15/09:svnAppleInc.:pnMacBookPro5,3:pvr1.0:rvnAppleInc.:rnMac-F22587C8:rvr:cvnAppleInc.:ct10:cvrMac-F22587C8:
+ dmi.product.name: MacBookPro5,3
+ dmi.product.version: 1.0
+ dmi.sys.vendor: Apple Inc.
** Attachment added: "AcpiTables.txt"
https://bugs.launchpad.net/bugs/925024/+attachment/2706238/+files/AcpiTables.txt
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/925024
Title:
apparmor makes it impossible to install postgresql-common on Precise
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/925024/+subscriptions
More information about the Ubuntu-server-bugs
mailing list