This bug was fixed in the package network-manager - 1.42.4-1ubuntu5

---------------
network-manager (1.42.4-1ubuntu5) mantic; urgency=medium

  * d/network-manager.postinst: fix netplan migration logic.
    The "continue" is being executed in a subshell so it's not skipping the
    next commands. It will fail if Network Manager is not running. See LP: 
#2022023
  * d/network-manager.preinst: use /var/lib/NetworkManager for backups
    /root is not a system directory so we shouldn't use it. It might not
    even exist or the package manager might run in a sandbox and not have
    access to it. See LP: #2021937

 -- Danilo Egea Gondolfo <danilo.egea.gondo...@canonical.com>  Thu, 01
Jun 2023 15:17:57 +0100

** Changed in: network-manager (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/2021937

Title:
  preinst writes to /root

Status in network-manager package in Ubuntu:
  Fix Released

Bug description:
  As part of my sandboxed APT I noticed that the package failed to
  install as it was trying to write to /root.

  /root is a user directory, not a system one, which may not even exist
  because the administrator changed it to like /home/root, for example,
  and we definitely should not be writing system files in user
  directories.

  Preparing to unpack .../16-network-manager_1.42.4-1ubuntu4_amd64.deb ...      
                                                                     
  mkdir: cannot create directory ‘/root/NetworkManager.bak’: Read-only file 
system
  cp: cannot create directory 
'/root/NetworkManager.bak/system-connections_1.42.4-1ubuntu2': No such file or 
directory
  dpkg: error processing archive 
/tmp/apt-dpkg-install-x9x0Qo/16-network-manager_1.42.4-1ubuntu4_amd64.deb 
(--unpack):
   new network-manager package pre-installation script subprocess returned 
error exit status 1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/2021937/+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

Reply via email to