On 2020/09/02 13:42, Austin Hook wrote:
> On Sun, 2 Aug 2020, Stuart Henderson wrote:
> > If you need to get it fixed, the following should do the trick;
> > save a list of packages, remove them all, and reinstall:
> > 
> >     pkg_info -mz >/root/pkg_list_manual
> >     pkg_info -z >/root/pkg_list_full
> >     pkg_delete -X /var/db/pkg/*-firmware-[0-9]*
> >     pkg_add -z -l /root/pkg_list_manual
> >     pkg_add -za -l /root/pkg_list_full
> 
> Hi Stuart,
> 
>    Am trying the your previous solution on another server where I seem to 
> have scrambled the pkg upgrade process again.  Those steps worked great on 
> the first one, which is now running 6.7 fine.
> 
>    Why would the packages for a current stable release seem to get hung up 
> on the package database getting locked for a still newer release?
> 
> slippery$ su -l
> Password:
> slippery# pkg_info -mz >/root/pkg_list_manual                                 
>                                   
> Package database already locked... awaiting release... ^C

Are any other pkg_* or fw_update processes running at the same time?
It uses flock() on a file, I was under the impression this is cleared
automatically if the relevant process exits, I maybe wrong though.

Reply via email to