Bug#1041784: apt: upgrade to 12.1 stalls on install of /etc/systemd/system.conf

2023-07-23 Thread Jonathan Leivent
Package: apt
Version: 2.6.1
Severity: important
X-Debbugs-Cc: jleiv...@comcast.net

Dear Maintainer,

   * What led up to the situation?

I have a systemd service that does upgrades during shutdown.  It stalled while 
attempting to do the upgrade to 12.1.  The service is a oneshot 
remain-after-exit
type that uses ExecStop to run a script containing the following:

export DEBIAN_FRONTEND=noninteractive
apt update
apt upgrade -y -o Dpkg::Options::="--force-confdef" -o 
Dpkg::Options::="--force-confold" 
apt autoremove -y

When attempted the upgrade to 12.1, it got to the following point:

Setting up libsystemd-shared:amd64 (252.12-1~deb12u1) ...
Setting up systemd (252.12-1~deb12u1) ...
Installing new version of config file /etc/systemd/system.conf ...

and then stalled.  I tried switching to a different console, but that did not 
work and
the machine became completely unresponsive.

Was this some kind of deadlock between the install and the systemd service 
performing it?

If we are not supposed to use systemd services to do unattended upgrades at 
shutdown,
what works instead?

   * What exactly did you do (or not do) that was effective (or
 ineffective)?

I had to do a hardware reboot.  Then I did apt update and apt upgrade by hand.

   * What was the outcome of this action?

Seems OK now.


-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "true";
APT::Install-Suggests "0";
APT::Sandbox "";
APT::Sandbox::User "_apt";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image-[a-z0-9]*$";
APT::NeverAutoRemove:: "^linux-image-[a-z0-9]*-[a-z0-9]*$";
APT::VersionedKernelPackages "";
APT::VersionedKernelPackages:: "linux-.*";
APT::VersionedKernelPackages:: "kfreebsd-.*";
APT::VersionedKernelPackages:: "gnumach-.*";
APT::VersionedKernelPackages:: ".*-modules";
APT::VersionedKernelPackages:: ".*-kernel";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "tasks";
APT::Move-Autobit-Sections "";
APT::Move-Autobit-Sections:: "oldlibs";
APT::Update "";
APT::Update::Post-Invoke-Success "";
APT::Update::Post-Invoke-Success:: "/usr/bin/test -e 
/usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && 
/usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call 
--system --dest org.freedesktop.PackageKit --object-path 
/org/freedesktop/PackageKit --timeout 4 --method 
org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo 
> /dev/null";
APT::Update::Post-Invoke-Success:: "if /usr/bin/test -w /var/cache/swcatalog -a 
-e /usr/bin/appstreamcli; then appstreamcli refresh --source=os > /dev/null || 
true; fi";
APT::Architectures "";
APT::Architectures:: "amd64";
APT::Compressor "";
APT::Compressor::. "";
APT::Compressor::.::Name ".";
APT::Compressor::.::Extension "";
APT::Compressor::.::Binary "";
APT::Compressor::.::Cost "0";
APT::Compressor::zstd "";
APT::Compressor::zstd::Name "zstd";
APT::Compressor::zstd::Extension ".zst";
APT::Compressor::zstd::Binary "zstd";
APT::Compressor::zstd::Cost "60";
APT::Compressor::zstd::CompressArg "";
APT::Compressor::zstd::CompressArg:: "-19";
APT::Compressor::zstd::UncompressArg "";
APT::Compressor::zstd::UncompressArg:: "-d";
APT::Compressor::lz4 "";
APT::Compressor::lz4::Name "lz4";
APT::Compressor::lz4::Extension ".lz4";
APT::Compressor::lz4::Binary "false";
APT::Compressor::lz4::Cost "50";
APT::Compressor::gzip "";
APT::Compressor::gzip::Name "gzip";
APT::Compressor::gzip::Extension ".gz";
APT::Compressor::gzip::Binary "gzip";
APT::Compressor::gzip::Cost "100";
APT::Compressor::gzip::CompressArg "";
APT::Compressor::gzip::CompressArg:: "-6n";
APT::Compressor::gzip::UncompressArg "";
APT::Compressor::gzip::UncompressArg:: "-d";
APT::Compressor::xz "";
APT::Compressor::xz::Name "xz";
APT::Compressor::xz::Extension ".xz";
APT::Compressor::xz::Binary "xz";
APT::Compressor::xz::Cost "200";
APT::Compressor::xz::CompressArg "";
APT::Compressor::xz::CompressArg:: "-6";
APT::Compressor::xz::UncompressArg "";
APT::Compressor::xz::UncompressArg:: "-d";
APT::Compressor::bzip2 "";
APT::Compressor::bzip2::Name "bzip2";
APT::Compressor::bzip2::Extension ".bz2";
APT::Compressor::bzip2::Binary "bzip2";
APT::Compressor::bzip2::Cost "300";
APT::Compressor::bzip2::CompressArg "";
APT::Compressor::bzip2::CompressArg:: "-6";
APT::Compressor::bzip2::UncompressArg "";
APT::Compressor::bzip2::UncompressArg:: "-d";
APT::Compressor::lzma "";
APT::Compressor::lzma::Name "lzma";
APT::Compressor::lzma::Extension ".lzma";
APT::Compressor::lzma::Binary "xz";
APT::Compressor::lzma::Cost "400";
APT::Compressor::lzma::CompressArg "";
APT::Compressor::lzma::CompressArg:: "--format=lzma";
APT::Compressor::lzma::CompressArg:: 

Bug#1041490: libreoffice-common: AppArmor profile for libreoffice-oosplach needs wayland abstraction

2023-07-19 Thread Jonathan Leivent
Package: libreoffice-common
Version: 4:7.4.5-3
Severity: important
X-Debbugs-Cc: jleiv...@comcast.net

Dear Maintainer,

   * What led up to the situation?

Attempt to run libreoffice in a Wayland compositor desktop without XWayland 
support

   * What exactly did you do (or not do) that was effective (or
 ineffective)?

Disabled the libreoffice AppArmor profiles

   * What was the outcome of this action?

With libreoffice's AppArmor profiles disabled, it starts without issue

   * What outcome did you expect instead?

Yes.


-- Package-specific info:
Configuration filePackage Exists Changed
/etc/libreoffice/registry/Langpack-en-US.xcd  libreoffice-common  Yes No
/etc/libreoffice/registry/lingucomponent.xcd  libreoffice-common  Yes No
/etc/libreoffice/registry/main.xcdlibreoffice-common  Yes No
/etc/libreoffice/registry/pdfimport.xcd   libreoffice-common  Yes No
/etc/libreoffice/registry/res/fcfg_langpack_e libreoffice-common  Yes No
/etc/libreoffice/registry/xsltfilter.xcd  libreoffice-common  Yes No

-- System Information:
Debian Release: 12.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-10-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libreoffice-common depends on:
ii  libnumbertext-data 1.0.11-1
ii  libreoffice-style-colibre  4:7.4.5-3
ii  ucf3.0043+nmu1
ii  ure4:7.4.5-3

Versions of packages libreoffice-common recommends:
ii  apparmor3.0.8-3
ii  fonts-liberation2   2.1.5-1
ii  libexttextcat-data  3.4.5-1
ii  poppler-data0.4.12-1
ii  python3-uno 4:7.4.5-3
ii  xdg-utils   1.1.3-4.1

Versions of packages libreoffice-common suggests:
ii  libreoffice-style-colibre [libreoffice-style]  4:7.4.5-3

-- no debconf information