pkg problem after upgrade pkg on 10.0

1 view
Skip to first unread message

Radek Krejča

unread,
Aug 1, 2014, 2:25:49 PM8/1/14
to freebsd-...@freebsd.org
Hello,

I have problem with pkg after upgrade. More at bottom. I tried to delete repo with command

rm -rf /var/db/pkg/repo* && pkg upgrade

and problem is the same.

Thank you
Radek


Updating repository catalogue
digests.txz 100% 1087KB 1.1MB/s 1.1MB/s 00:00
packagesite.txz 100% 5022KB 4.9MB/s 3.2MB/s 00:01
Incremental update completed, 23257 packages processed:
23044 packages updated, 223 removed and 183 added.
New version of pkg detected; it needs to be installed first.
Upgrades have been requested for the following 1 packages:

Upgrading pkg: 1.2.7_3 -> 1.3.3

The upgrade will require 1 MB more space

2 MB to be downloaded

Proceed with upgrading packages [y/N]: y
pkg-1.3.3.txz 100% 2212KB 2.2MB/s 2.2MB/s 00:01
Checking integrity... done
[1/1] Upgrading pkg from 1.2.7_3 to 1.3.3... done
If you are upgrading from the old package format, first run:

# pkg2ng
Updating repository catalogue
pkg: Repo "FreeBSD" upgrade schema 2006 to 2007: Add conflicts and provides
pkg: Repo "FreeBSD" upgrade schema 2007 to 2008: Add FTS index
pkg: Repo "FreeBSD" upgrade schema 2008 to 2009: Optimize indicies
pkg: Repo "FreeBSD" upgrade schema 2009 to 2010: Add legacy digest field
pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/meta.txz: Not Found
_______________________________________________
freebsd-...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Paul Blockhaus

unread,
Aug 1, 2014, 5:07:19 PM8/1/14
to Radek Krejča, freebsd-...@freebsd.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello,
I think you would not have to remove the repro, pkg does everything itself by using pkg update. Maybe it helps to reinstall pkg.
Commands:
# cd /usr/ports/ports-mgmt/pkg
# make deinstall
# make
# make install clean

Greetings Paul

- --
Emails sind wie Postkarten, jeder kann sie lesen.
-----BEGIN PGP SIGNATURE-----
Version: APG v1.1.1

iD8DBQFT3AF2LyFhCfL04ssRCt0+AJ9WmKGiZIFGGM0e5ZJE3fVGRRizJgCgjkob
v3e8uURipV5e6HFZgcFofzg=
=Vasw
-----END PGP SIGNATURE-----

Radek Krejča

unread,
Aug 5, 2014, 1:00:43 PM8/5/14
to Paul Blockhaus, freebsd-...@freebsd.org
> I think you would not have to remove the repro, pkg does everything
> itself by using pkg update. Maybe it helps to reinstall pkg.
> Commands:
> # cd /usr/ports/ports-mgmt/pkg
> # make deinstall
> # make
> # make install clean

[Radek Krejca]

Hello, thank you. But its still the same:

pkg update
Updating repository catalogue
pkg: repository FreeBSD has no meta file, using default settings
FreeBSD repository is up-to-date
All repositories are up-to-date

Radek

Matthew Seaman

unread,
Aug 5, 2014, 1:53:16 PM8/5/14
to freebsd-...@freebsd.org
On 05/08/2014 18:00, Radek Krejča wrote:
>> I think you would not have to remove the repro, pkg does everything
>> itself by using pkg update. Maybe it helps to reinstall pkg.
>> Commands:
>> # cd /usr/ports/ports-mgmt/pkg
>> # make deinstall
>> # make
>> # make install clean
>
> [Radek Krejca]
>
> Hello, thank you. But its still the same:
>
> pkg update
> Updating repository catalogue
> pkg: http://pkg.FreeBSD.org/freebsd:10:x86:64/latest/meta.txz: Not Found
> pkg: repository FreeBSD has no meta file, using default settings
> FreeBSD repository is up-to-date
> All repositories are up-to-date

After updating from pkg-1.2.7 to pkg-1.3.x I've been finding it
necessary to delete the repository catalogues and sometimes to clear out
any cached packages:

# rm -i /var/db/pkg/repo-* /var/db/pkg/*.meta
# pkg clean -a

You should then find that pkg will update its catalogues and start
behaving more sensibly. Don't worry about the warning about 'no meta
file' -- that is /only/ a warning and doesn't stop pkg(8) from working.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey


signature.asc

mfv

unread,
Aug 5, 2014, 4:06:21 PM8/5/14
to freebsd-...@freebsd.org

Hello,

The reason that the file "meta.txz" is not found is that it does not
exist, except on

http://pkg.FreeBSD.org/freebsd:11:x86:32/latest/meta.txz
--
and

http://pkg.FreeBSD.org/freebsd:11:x86:64/latest/meta.txz
--

My guess is that since release 11 is the leading edge of development it
is being used for testing purposes. I suppose if the tests work out
then this file and the purposes for which it exists will be back
ported. Some other person who is more knowledgeable than myself could
comment on the need for meta.txz.

I am running pkg-1.3.4 on release 9.1 and the same message appears
when I run "pkg update" or "pkg upgrade". Nevertheless, both parameters
to pkg work as intended.

I've been using the new pkg program since it was first released and
except for a few minor hiccups with no data loss it has worked quite
well. Kudos to the developers.

Carpe Diem __o
_.\<,_
Marek (+)/ (+)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply all
Reply to author
Forward
0 new messages