Why is dpkg trying to write a file '//..dpkg-tmp'?
I'm having a problem with dpkg installing packages, but first I need to explain my setup a bit. I have a failover system setup as follows on my machine. 1. The root / filesystem boots as read-only (squashfs). 2. The following directories are symlinked to /failover/system/[dirname] /bin /boot /etc /home /lib /media /mnt /opt /sbin /selinux /srv /tmp /usr /var The real directories exist in those locations (/failover/system/[dirname]). 3. The directories like /proc /sys /run remain in root /. 4. Early in the init process (S00), if a specific USB drive exists, it is read-write mounted over /failover/system/. This provides all new directories, and all the symlinked directories above become read-write. This gives a read-write filesystem. And the init process continues. So now onto my problem- When I try to install software, I get the following error. ~# dpkg -i /var/cache/apt/archives/popularity-contest_1.56_all.deb Selecting previously unselected package popularity-contest. (Reading database ... 15891 files and directories currently installed.) Unpacking popularity-contest (from .../popularity-contest_1.56_all.deb) ... dpkg: error processing /var/cache/apt/archives/popularity-contest_1.56_all.deb (--install): unable to securely remove '//..dpkg-tmp': Read-only file system Processing triggers for man-db ... Errors were encountered while processing: /var/cache/apt/archives/popularity-contest_1.56_all.deb What or where is this '//..dpkg-tmp'? Is dpkg trying to read-write in the very root / of the filesystem? I need a way to stop dpkg from doing this or work around it. -- To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/53f7b84d.2040...@gmx.com
Re: Why is dpkg trying to write a file '//..dpkg-tmp'?
Hi! On Fri, 2014-08-22 at 17:38:21 -0400, sepero...@gmx.com wrote: > I'm having a problem with dpkg installing packages, but first I need to > explain my setup a bit. > > I have a failover system setup as follows on my machine. […] > So now onto my problem- When I try to install software, I get the > following error. > > ~# dpkg -i /var/cache/apt/archives/popularity-contest_1.56_all.deb > Selecting previously unselected package popularity-contest. > (Reading database ... 15891 files and directories currently installed.) > Unpacking popularity-contest (from .../popularity-contest_1.56_all.deb) ... > dpkg: error processing > /var/cache/apt/archives/popularity-contest_1.56_all.deb (--install): > unable to securely remove '//..dpkg-tmp': Read-only file system > Processing triggers for man-db ... > Errors were encountered while processing: > /var/cache/apt/archives/popularity-contest_1.56_all.deb > > What or where is this '//..dpkg-tmp'? Is dpkg trying to read-write in the > very root / of the filesystem? I need a way to stop dpkg from doing this or > work around it. The «/.» path comes from the filesystem tarball in the binary pacakge («dpkg-deb -c» will show you). And dpkg tries to remove any possible temporary files it might have left behind in a previous run. But this should be unnecessary with the root directory, and it's something that has annoyed me for a while, althought w/o any obvious bad consequence. Knowing that there's cases where this is a problem, give me an actual reason to sit down and fix it, which I'm planning to do for 1.17.14. Thanks, Guillem -- To UNSUBSCRIBE, email to debian-dpkg-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140823010027.ga12...@gaara.hadrons.org