pkg 1.4.6 deleted itself - I thought this might happen!

Matthew Dillon dillon at backplane.com
Thu Feb 12 23:00:04 PST 2015


And pkg-static should still be there and you should be able to reinstall
pkg with it.

-Matt

On Thu, Feb 12, 2015 at 9:29 PM, Zachary Crownover <
zachary.crownover at gmail.com> wrote:

> You can rebuild pkg from dports in probably five minutes.
> On Feb 12, 2015 8:02 PM, "Pierre Abbat" <phma at leaf.dragonflybsd.org>
> wrote:
>
>> pkg 1.4.6 had a bug in which, if told to upgrade a package, it would
>> leave the
>> database thinking the package is installed, but its files are actually
>> missing.
>> I just tried to install a package, and pkg found it had to upgrade itself.
>> Here's what happened:
>>
>> # pkg ins minicom
>> Updating Avalon repository catalogue...
>> Avalon repository is up-to-date.
>> All repositories are up-to-date.
>> New version of pkg detected; it needs to be installed first.
>> The following 1 packages will be affected (of 0 checked):
>>
>> Installed packages to be UPGRADED:
>>         pkg: 1.4.6 -> 1.4.11
>>
>> The process will require 51 KB more space.
>> 2 MB to be downloaded.
>>
>> Proceed with this action? [y/N]: y
>> Fetching pkg-1.4.11.txz: 100%    2 MB  99.0k/s    00:22
>> Checking integrity... done (0 conflicting)
>> [1/1] Upgrading pkg from 1.4.6 to 1.4.11...
>> [1/1] Extracting pkg-1.4.11:  20%
>> pkg: archive_read_extract(): truncated input
>> [1/1] Extracting pkg-1.4.11: 100%
>> [1/1] Deleting files for pkg-1.4.11: 100%
>> # pkg ins minicom
>> pkg: not found
>>
>> So I have a downloaded pkg package in /var/cache/pkg/. What do I do with
>> it?
>>
>> Pierre
>> --
>> ve ka'a ro klaji la .romas. se jmaji
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20150212/56b3004a/attachment-0007.html>


More information about the Users mailing list