Public bug reported:

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

** Affects: network-manager (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Desktop
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:
  New

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/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to