Date: Fri, 03 Jul 2015 11:30:10 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 201302] Can't update packages using pkg Message-ID: <bug-201302-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201302 Bug ID: 201302 Summary: Can't update packages using pkg Product: Base System Version: 10.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: freebsd-bugs@FreeBSD.org Reporter: josh@endries.org This morning I updated the OS to the latest patchlevel due to receiving the "freebsd-update cron" email: $ sudo freebsd-update install Password: Installing updates... done. $ uname -a FreeBSD mysql2 10.0-RELEASE-p7 FreeBSD 10.0-RELEASE-p7 #0: Tue Jul 8 06:37:44 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 $ sudo reboot [...] $ uname -a FreeBSD mysql2 10.0-RELEASE-p18 FreeBSD 10.0-RELEASE-p18 #0: Wed Feb 25 01:08:00 UTC 2015 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 That seemed to work fine. Then I tried to update my packages, which failed. Fortunately there are no security vulnerabilities (though I'm not sure I trust this at this point): $ sudo pkg audit -F Password: Vulnxml file up-to-date. 0 problem(s) in the installed packages found. $ sudo pkg upgrade Updating repository catalogue 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.5.4 The upgrade will require 2 MB more space 2 MB to be downloaded Proceed with upgrading packages [y/N]: y pkg-1.5.4.txz 100% 2423KB 1.2MB/s 153.4KB/s 00:02 pkg: pkg-1.5.4 failed checksum from repository $ sudo pkg check -s -a $ echo $? 0 $ sudo pkg update -f Updating repository catalogue digests.txz 100% 2060KB 1.0MB/s 1.4MB/s 00:02 packagesite.txz 100% 5264KB 1.0MB/s 1.2MB/s 00:05 pkg: package field incomplete: comment Incremental update completed, 24266 packages processed: 220 packages updated, 7 removed and 23 added. pkg: Unable to find catalogs $ sudo pkg upgrade Updating repository catalogue 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.5.4 The upgrade will require 2 MB more space 2 MB to be downloaded Proceed with upgrading packages [y/N]: y pkg-1.5.4.txz 100% 2423KB 807.8KB/s 1.2MB/s 00:03 pkg: pkg-1.5.4 failed checksum from repository $ ls /usr/share/keys/pkg/trusted/ pkg.freebsd.org.2013102301 $ cd /usr/src/share/keys $ sudo make install Password: ===> pkg (install) ===> pkg/trusted (install) install -o root -g wheel -m 644 pkg.freebsd.org.2013102301 /usr/share/keys/pkg/trusted $ sudo pkg upgrade Updating repository catalogue 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.5.4 The upgrade will require 2 MB more space 2 MB to be downloaded Proceed with upgrading packages [y/N]: y pkg-1.5.4.txz 100% 2423KB 807.8KB/s 1.2MB/s 00:03 pkg: pkg-1.5.4 failed checksum from repository I don't know if my OS upgrade had anything to do with it breaking or not, but I wouldn't think so. I tried some things I've found online, like reinstalling the keys, though it was the same file since the source wasn't updated. Maybe freebsd-update didn't update the key. Not sure what to do now... -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201302-8>