pkg-static: pkg-1.4.0.p.a11 conflicts with pkg-1.3.7 (installs files into the same place).

Bryan Drewery bdrewery at FreeBSD.org
Wed Sep 17 18:51:43 UTC 2014


On 9/17/2014 1:48 PM, olli hauer wrote:
> On 2014-09-17 20:24, Lucas Willian Bocchi wrote:
>> No. The packages are downloaded using pkg.
> 
> Look if you have a copy of pkg-1.3.7 in /var/cache/pkg/
> If not run '$ pkg -vv' there are lines similar to the next lines
> 
> Repositories:
>   FreeBSD: {
>     url             : "pkg+http://pkg.FreeBSD.org/freebsd:10:x86:64/latest",
> ...
>   }
> 
> Now append "/Latest/pkg.txz" and use fetch to get pkg-1.3.7 for your system
> $ fetch http://pkg.freebsd.org/freebsd:10:x86:64/latest/Latest/pkg.txz
> 
> Extract the archive and use pkg-static from here.
> All othere steps are the same as described in the first reply
> 
> // hth. olli
> 
>>
>> 2014-09-17 15:11 GMT-03:00 olli hauer <ohauer at gmx.de>:
>>> On 2014-09-17 16:15, Lucas Willian Bocchi wrote:
>>>> Hi
>>>>
>>>> I have the same problem on my FreeBSD 10.
>>>>
>>>> My server are in production environment and now packages such as PHP
>>>> and others won't work anymore because the packages have updates to do
>>>> but with this conflict the server won't complete the update process.
>>>> No way to force the installation of pkg 1.4 and no way to solve the
>>>> problem using pkg 1.3.7.
>>>>
>>>> Any ideas?
>>>
>>> Are the packages build by yourself and if yes with which pkg version?
>>>
>>> In case packages where build with pkg 1.3.7 there is a way back.
>>>
>>> $ cp -R /var/db/pkg /var/db/pkg.save
>>> $ mkdir backdir && cd backdir
>>> $ cp /usr/local/sbin/pkg-static pkg-static-$pkgver
>>> $ ./pkg-static-$pkgver delete -f pkg
>>>
>>> Transfer pkg-static from 1.3.7 to the system and read 'man pkg-backup'
>>>
>>> $ ./pkg-static-1.3.7 backup -r src_file
>>>
>>> where src_file is one of the backups stored as as /var/backups/pkgdb.bak.tbz(.num)
>>>

None of this manual work is needed. Just run 'pkg bootstrap -f'


-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20140917/91cf1155/attachment.sig>


More information about the freebsd-ports mailing list