Re: Bug#35568: apt keeps complaining about dpkg's post-invoke
On Mon, 5 Apr 1999, Linh Dang wrote:
> Package: apt
> Version: 0.3.3
>
> when I install with apt, I keep getting this error message after dpkg
> finished installing everything:
>
> mount: /usr is busy
> E: Problem executing scripts DPkg::Post-Invoke 'mount -o remount,ro /usr'
> E: Sub-process returned an error code
>
> My /etc/apt/apt.conf is:
>
> DPkg
> {
> // Auto re-mounting of a readonly /usr
> Pre-Invoke {"mount -o remount,rw /usr";};
> Post-Invoke {"mount -o remount,ro /usr";};
> }
>
> I type 'mount -o remount,ro /usr', the mount is successful.
I'll need your help to determine why APT cannot remount /usr, I need to
know what program is keeping the partition busy.
Can you use lsof > /tmp/blah as the post-invoke script and look to see
what could be keeping things busy? Can you try adding a long sleep before
the unmount? AFAIK apt itself does not do anything to the /usr partition
so I am at a loss why the kernel would refuse to unmount it.
Maybe you need a shell script that sleeps, unmounts and repeats untill the
parition can by unmounted, and maybe you need a sync in there as well??
Jason
Reply to: