[Touch-packages] [Bug 1571531] Re: cupsd cause apparmor denials for /etc/ld.so.preload
I'm seeing this problem in Lubuntu 20.04. The system discovered my network printer automatically. (It chose A4 paper size, but I am in the US and use letter size. Changing to letter didn't matter for this problem.) When I print an error message pops up: "cups-pki-expired." In the logs, I see this: Apr 27 00:32:58 moo kernel: [148547.069532] audit: type=1400 audit(1587965578.953:1031): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/proc/sys/kernel/random/boot_id" pid=16330 comm="cupsd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 Apr 27 00:33:51 moo kernel: [148600.001307] kauditd_printk_skb: 5 callbacks suppressed Apr 27 00:33:51 moo kernel: [148600.001309] audit: type=1400 audit(1587965631.885:1037): apparmor="DENIED" operation="file_lock" profile="/usr/sbin/cupsd" name="/run/utmp" pid=16330 comm="cupsd" requested_mask="k" denied_mask="k" fsuid=0 ouid=0 ... Apr 27 00:33:58 moo kernel: [148607.079070] audit: type=1400 audit(1587965638.961:1044): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/proc/sys/kernel/random/boot_id" pid=16330 comm="cupsd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 Apr 27 00:33:58 moo kernel: [148607.079096] audit: type=1400 audit(1587965638.961:1045): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/proc/sys/kernel/random/boot_id" pid=16330 comm="cupsd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 Apr 27 00:33:58 moo kernel: [148607.079226] audit: type=1400 audit(1587965638.961:1046): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/proc/sys/kernel/random/boot_id" pid=16330 comm="cupsd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 Apr 27 00:33:58 moo kernel: [148607.079261] audit: type=1400 audit(1587965638.961:1047): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/proc/sys/kernel/random/boot_id" pid=16330 comm="cupsd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 Apr 27 00:34:00 moo /hpfax: [16748]: error: Failed to create /var/spool/cups/tmp/.hplip -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apparmor in Ubuntu. https://bugs.launchpad.net/bugs/1571531 Title: cupsd cause apparmor denials for /etc/ld.so.preload Status in apparmor package in Ubuntu: Confirmed Status in snapd package in Ubuntu: Triaged Bug description: There is a constant flood of messages in dmesg: [ 4431.638163] audit: type=1400 audit(1460962510.272:60): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/etc/ld.so.preload" pid=10559 comm="cupsd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 [ 4431.661208] audit: type=1400 audit(1460962510.296:61): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/etc/ld.so.preload" pid=10564 comm="cups-exec" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 [ 4431.661390] audit: type=1400 audit(1460962510.296:62): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/etc/ld.so.preload" pid=10565 comm="cups-exec" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 [ 4431.661759] audit: type=1400 audit(1460962510.296:63): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/etc/ld.so.preload" pid=10564 comm="dbus" requested_mask="r" denied_mask="r" fsuid=7 ouid=0 [ 4431.661936] audit: type=1400 audit(1460962510.296:64): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/etc/ld.so.preload" pid=10566 comm="cups-exec" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 [ 4431.661937] audit: type=1400 audit(1460962510.296:65): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/etc/ld.so.preload" pid=10565 comm="dbus" requested_mask="r" denied_mask="r" fsuid=7 ouid=0 [ 4431.662534] audit: type=1400 audit(1460962510.296:66): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/etc/ld.so.preload" pid=10566 comm="dbus" requested_mask="r" denied_mask="r" fsuid=7 ouid=0 [ 5081.410342] audit: type=1400 audit(1460963160.033:67): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/etc/ld.so.preload" pid=10810 comm="cupsd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 [ 5081.446507] audit: type=1400 audit(1460963160.069:68): apparmor="DENIED" operation="open" profile="/usr/sbin/cupsd" name="/etc/ld.so.preload" pid=10815 comm="cups-exec" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: cups-daemon 2.1.3-4 ProcVersionSignature: Ubuntu 4.4.0-18.34-generic 4.4.6 Uname: Linux 4.4.0-18-generic x86_64 ApportVersion: 2.20.1-0ubuntu2 Architecture: amd64 CupsErrorLog: CurrentDesktop: X-Cinnamon Date: Mon Apr 18 10:56:37 2016 EcryptfsInUse: Yes InstallationDate: Installed on 2013-07-19 (1003 days ago) InstallationMedia: Xubuntu 13.04 "Raring Ringtail" - Release i386 (20130423.1) Lpstat: device for Generic-PCL-5e: socket:
[Touch-packages] [Bug 1541532] Re: migrate UTC setting from /etc/default/rcS to adjtime
A few days ago, I upgraded a dual boot system from Lubuntu 15.10 to 16.04, and could not get the system to accept that the clock was set to the local timezone, not UTC. The upgrade stripped the UTC setting from /etc/default/rcS: # assume that the BIOS clock is set to UTC time (recommended) UTC=no I put the UTC variable setting back in /etc/default/rcS, as advised many search results on this problem, and it had no effect. Now I find this bug report. Checking, my system had no /etc/adjtime file. Shouldn't this file have been created during the upgrade? It was created when I ran "timedatectl set-local-rtc 1" manually. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to sysvinit in Ubuntu. https://bugs.launchpad.net/bugs/1541532 Title: migrate UTC setting from /etc/default/rcS to adjtime Status in installation-guide package in Ubuntu: Fix Released Status in lupin package in Ubuntu: Fix Released Status in mbr package in Ubuntu: Fix Released Status in systemd package in Ubuntu: Fix Released Status in sysvinit package in Ubuntu: Fix Released Status in util-linux package in Ubuntu: Fix Released Status in mbr package in Debian: New Bug description: This has been an Ubuntu delta in systemd and perhaps other Ubuntu packages for a long time. But /etc/default/rcS is a SysV-ism, and no other setting in there is relevant. Steps: * Bump the version guard in systemd.conf for migrating the actual setting (keep until 16.04 LTS) * Ensure that we only look at the LOCAL setting during boot, and do no actual drift correction at boot, as the kernel does that by itself. * grep the archive for software which might directly look at or even write that file (Ubuntu specific config tools and the like). To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/installation-guide/+bug/1541532/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1455683] Re: Starts emergency mode for failed "auto" fstab mounts (not marked with nofail)
"nofail" sounds like a good option. Should also mention that Windows could still create or have a hibernation file even when Fast Startup is disabled. I added "remove_hiberfile" to the options for /mnt/windows in /etc/fstab to work around that problem. That works for me, but some users may want to use hibernation in Windows. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1455683 Title: Starts emergency mode for failed "auto" fstab mounts (not marked with nofail) Status in systemd package in Ubuntu: Triaged Bug description: Problem is with systemd, or with how the installation configured systemd. Machine is a 64bit system, AMD CPU and graphics card, dual boot. Windows 8.1 is on sda1 and 2, and Lubuntu 15.04 is on sda5 (swap), 6 (/), and 7 (/home). I installed Windows first. During install of Lubuntu, I added sda2 to the list of partitions to mount during boot. I chose /mnt/windows for the mount point. Windows 8.1 defaults to this Fast Startup in which instead of doing a real shutdown, it hibernates the partition, not cleanly unmounting it. After booting Windows then rebooting and choosing Ubuntu, the system does not bring up the GUI, instead dropping to a text screen, saying: ACPI PCC probe failed. starting version 219. welcome to emergency mode The only error in the logs is that the system can't mount /mnt/windows. Those other messages about ACPI and version 219 are red herrings. I don't know why systemd is configured to think that /mnt/windows is critical to the system, and why it responds by refusing to run the GUI (staying in runlevel 1 maybe?). After changing Windows to disable its Fast Startup and then booting into Lubuntu, the system works normally and LXDE comes up as expected. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1455683/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1455683] [NEW] dual boot machine: desktop fails to start if Windows partition hibernated
Public bug reported: Problem is with systemd, or with how the installation configured systemd. Machine is a 64bit system, AMD CPU and graphics card, dual boot. Windows 8.1 is on sda1 and 2, and Lubuntu 15.04 is on sda5 (swap), 6 (/), and 7 (/home). I installed Windows first. During install of Lubuntu, I added sda2 to the list of partitions to mount during boot. I chose /mnt/windows for the mount point. Windows 8.1 defaults to this Fast Startup in which instead of doing a real shutdown, it hibernates the partition, not cleanly unmounting it. After booting Windows then rebooting and choosing Ubuntu, the system does not bring up the GUI, instead dropping to a text screen, saying: ACPI PCC probe failed. starting version 219. welcome to emergency mode The only error in the logs is that the system can't mount /mnt/windows. Those other messages about ACPI and version 219 are red herrings. I don't know why systemd is configured to think that /mnt/windows is critical to the system, and why it responds by refusing to run the GUI (staying in runlevel 1 maybe?). After changing Windows to disable its Fast Startup and then booting into Lubuntu, the system works normally and LXDE comes up as expected. ** Affects: systemd (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1455683 Title: dual boot machine: desktop fails to start if Windows partition hibernated Status in systemd package in Ubuntu: New Bug description: Problem is with systemd, or with how the installation configured systemd. Machine is a 64bit system, AMD CPU and graphics card, dual boot. Windows 8.1 is on sda1 and 2, and Lubuntu 15.04 is on sda5 (swap), 6 (/), and 7 (/home). I installed Windows first. During install of Lubuntu, I added sda2 to the list of partitions to mount during boot. I chose /mnt/windows for the mount point. Windows 8.1 defaults to this Fast Startup in which instead of doing a real shutdown, it hibernates the partition, not cleanly unmounting it. After booting Windows then rebooting and choosing Ubuntu, the system does not bring up the GUI, instead dropping to a text screen, saying: ACPI PCC probe failed. starting version 219. welcome to emergency mode The only error in the logs is that the system can't mount /mnt/windows. Those other messages about ACPI and version 219 are red herrings. I don't know why systemd is configured to think that /mnt/windows is critical to the system, and why it responds by refusing to run the GUI (staying in runlevel 1 maybe?). After changing Windows to disable its Fast Startup and then booting into Lubuntu, the system works normally and LXDE comes up as expected. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1455683/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp