I suppose it's possible I removed that file, but I don't think I did. And in any case,
drink@alexander:~$ sudo apt-get -o Dpkg::Options::="--force-confnew" --reinstall install apparmor Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded. 2 not fully installed or removed. Need to get 0 B/358 kB of archives. After this operation, 0 B of additional disk space will be used. Preconfiguring packages ... (Reading database ... 494887 files and directories currently installed.) Preparing to replace apparmor 2.7.102-0ubuntu3.1 (using .../apparmor_2.7.102-0ubuntu3.1_amd64.deb) ... Unpacking replacement apparmor ... Processing triggers for ureadahead ... Processing triggers for man-db ... Setting up cups (1.5.3-0ubuntu1) ... start: Job failed to start invoke-rc.d: initscript cups, action "start" failed. dpkg: error processing cups (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of printer-driver-gutenprint: printer-driver-gutenprint depends on cups (>= 1.3.0); however: Package cups is not configured yet. dpkg: error processing printer-driver-gutenprint (--configure): dependency problems - leaving unconfigured Setting up apparmor (2.7.102-0ubuntu3.1) ... No apport report written because the error message indicates its a followup error from a previous failure. * Starting AppArmor profiles AppArmor parser error for /etc/apparmor.d/gdm-guest-session in /etc/apparmor.d/tunables/global at line 15: Could not open 'tunables/home' AppArmor parser error for /etc/apparmor.d/lightdm-guest-session in /etc/apparmor.d/tunables/global at line 15: Could not open 'tunables/home' AppArmor parser error for /etc/apparmor.d/sbin.dhclient in /etc/apparmor.d/tunables/global at line 15: Could not open 'tunables/home' Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox AppArmor parser error for /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper in /etc/apparmor.d/tunables/global at line 15: Could not open 'tunables/home' AppArmor parser error for /etc/apparmor.d/usr.bin.evince in /etc/apparmor.d/tunables/global at line 15: Could not open 'tunables/home' AppArmor parser error for /etc/apparmor.d/usr.lib.telepathy in /etc/apparmor.d/tunables/global at line 15: Could not open 'tunables/home' AppArmor parser error for /etc/apparmor.d/usr.sbin.cupsd in /etc/apparmor.d/tunables/global at line 15: Could not open 'tunables/home' AppArmor parser error for /etc/apparmor.d/usr.sbin.libvirtd in /etc/apparmor.d/tunables/global at line 15: Could not open 'tunables/home' Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd AppArmor parser error for /etc/apparmor.d/usr.sbin.tcpdump in /etc/apparmor.d/tunables/global at line 15: Could not open 'tunables/home' [fail] invoke-rc.d: initscript apparmor, action "start" failed. * Reloading AppArmor profiles AppArmor parser error for /etc/apparmor.d/gdm-guest-session in /etc/apparmor.d/tunables/global at line 15: Could not open 'tunables/home' AppArmor parser error for /etc/apparmor.d/sbin.dhclient in /etc/apparmor.d/tunables/global at line 15: Could not open 'tunables/home' AppArmor parser error for /etc/apparmor.d/lightdm-guest-session in /etc/apparmor.d/tunables/global at line 15: Could not open 'tunables/home' AppArmor parser error for /etc/apparmor.d/usr.bin.evince in /etc/apparmor.d/tunables/global at line 15: Could not open 'tunables/home' AppArmor parser error for /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper in /etc/apparmor.d/tunables/global at line 15: Could not open 'tunables/home' Skipping profile in /etc/apparmor.d/disable: usr.bin.firefox AppArmor parser error for /etc/apparmor.d/usr.lib.telepathy in /etc/apparmor.d/tunables/global at line 15: Could not open 'tunables/home' AppArmor parser error for /etc/apparmor.d/usr.sbin.cupsd in /etc/apparmor.d/tunables/global at line 15: Could not open 'tunables/home' Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd AppArmor parser error for /etc/apparmor.d/usr.sbin.libvirtd in /etc/apparmor.d/tunables/global at line 15: Could not open 'tunables/home' AppArmor parser error for /etc/apparmor.d/usr.sbin.tcpdump in /etc/apparmor.d/tunables/global at line 15: Could not open 'tunables/home' invoke-rc.d: initscript apparmor, action "reload" failed. Errors were encountered while processing: cups printer-driver-gutenprint E: Sub-process /usr/bin/dpkg returned an error code (1) drink@alexander:~$ On Sun, Jul 8, 2012 at 9:55 PM, Martin Pitt <[email protected]> wrote: > /etc/apparmor.d/tunables/global at line 15: Could not open > 'tunables/home' > > Apparently you removed /etc/apparmor.d/tunables/home. Don't do that, > please! > > To restore it, run > > sudo apt-get -o Dpkg::Options::="--force-confnew" --reinstall install > apparmor > > ** Changed in: apparmor (Ubuntu) > Status: Incomplete => Invalid > > -- > You received this bug notification because you are subscribed to the bug > report. > https://bugs.launchpad.net/bugs/1020662 > > Title: > cups cannot start on upgrade, package will not configure > > Status in “apparmor” package in Ubuntu: > Invalid > > Bug description: > ^Cdrink@alexander:~$ sudo apt-get -f install > Reading package lists... Done > Building dependency tree > Reading state information... Done > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. > 2 not fully installed or removed. > After this operation, 0 B of additional disk space will be used. > Setting up cups (1.5.3-0ubuntu1) ... > start: Job failed to start > invoke-rc.d: initscript cups, action "start" failed. > dpkg: error processing cups (--configure): > subprocess installed post-installation script returned error exit > status 1 > dpkg: dependency problems prevent configuration of > printer-driver-gutenprint: > printer-driver-gutenprint depends on cups (>= 1.3.0); however: > Package cups is not configured yet. > dpkg: error processing printer-driver-gutenprint (--configure): > dependency problems - leaving unconfigured > No apport report written because the error message indicates its a > followup error from a previous failure. > > Errors were encountered while processing: > cups > printer-driver-gutenprint > E: Sub-process /usr/bin/dpkg returned an error code (1) > drink@alexander:~$ > > ProblemType: Bug > DistroRelease: Ubuntu 12.04 > Package: cups 1.5.3-0ubuntu1 > ProcVersionSignature: Ubuntu 3.4.0-3.7~precise1-generic 3.4.0 > Uname: Linux 3.4.0-3-generic x86_64 > NonfreeKernelModules: nvidia > ApportVersion: 2.0.1-0ubuntu8 > Architecture: amd64 > CupsErrorLog: > > Date: Tue Jul 3 10:11:31 2012 > Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: > Connection refused > MachineType: Gigabyte Technology Co., Ltd. GA-MA770T-UD3P > Papersize: a4 > PpdFiles: > hp-LaserJet-1012: HP LaserJet 1012, hpcups 3.12.2 > hplj2100: HP LaserJet 2100 Series pcl3, hpcups 3.12.2 > ProcEnviron: > TERM=xterm > PATH=(custom, no user) > SHELL=/bin/bash > ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.4.0-3-generic > root=UUID=8c8feac0-2451-4928-951a-847fa98cad71 ro quiet splash vt.handoff=7 > SourcePackage: cups > UpgradeStatus: No upgrade log present (probably fresh install) > dmi.bios.date: 03/22/2011 > dmi.bios.vendor: Award Software International, Inc. > dmi.bios.version: F12 > dmi.board.name: GA-MA770T-UD3P > dmi.board.vendor: Gigabyte Technology Co., Ltd. > dmi.board.version: x.x > dmi.chassis.type: 3 > dmi.chassis.vendor: Gigabyte Technology Co., Ltd. > dmi.modalias: > dmi:bvnAwardSoftwareInternational,Inc.:bvrF12:bd03/22/2011:svnGigabyteTechnologyCo.,Ltd.:pnGA-MA770T-UD3P:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnGA-MA770T-UD3P:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr: > dmi.product.name: GA-MA770T-UD3P > dmi.sys.vendor: Gigabyte Technology Co., Ltd. > > To manage notifications about this bug go to: > > https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1020662/+subscriptions > -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1020662 Title: cups cannot start on upgrade, package will not configure To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1020662/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
