Date: Thu, 19 Nov 2015 21:17:22 +0000 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-pkg@freebsd.org Subject: Re: Cannot upgrade from custom repo Message-ID: <564E3C62.8070306@FreeBSD.org> In-Reply-To: <9D053084-3D0D-4CAF-A309-37D3C5766D43@langille.org> References: <9D053084-3D0D-4CAF-A309-37D3C5766D43@langille.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --wmwmhv23FNK72UepcspA7PXOxwuFHcgUO Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 19/11/2015 20:43, Dan Langille wrote: > FreeBSD 10.2-RELEASE-p7 in a jail, using pkg-1.6.1_2 >=20 > I have a custom repo. I've been using it for some time. Today I wanted = to upgrade databases/mysql56-server, but I cannot. >=20 > Code: > $ sudo pkg upgrade -r local mysql56-server > Updating local repository catalogue... > local repository is up-to-date. > All repositories are up-to-date. > pkg: No packages available to upgrade matching 'mysql56-server' have be= en found in the repositories >=20 Hmmm... this didn't actually download an updated catalogue from your repo -- it seemed to think that what you already had was up to date. You can force it to update the repo by: pkg update -f That's a good thing to try any time pkg(8) isn't doing what you expect. >=20 > OK, let's look at All: >=20 > Code: > $ pkg -vv | grep url > url : "pkg+http://fedex.unixathome.org/packages/102amd6= 4-default-master-list/", > $=20 > fetch http://fedex.unixathome.org/packages/102amd64-default-master-list= /All > fetch: http://fedex.unixathome.org/packages/102amd64-default-master-lis= t/All: size of remote file is not known > All 88 kB 722 kBps= 00m00s >=20 > $ ls -l All > -rw-r--r-- 1 dan dan 90209 Nov 19 20:16 All > $ date > Thu Nov 19 20:17:14 UTC 2015 >=20 > $ grep mysql All > <a href=3D"mysql55-client-5.5.46.txz">mysql55-client-5.5.46.txz</a> = 19-Nov-2015 16:26 1666804 > <a href=3D"mysql55-server-5.5.46.txz">mysql55-server-5.5.46.txz</a> = 19-Nov-2015 16:32 6672556 > <a href=3D"mysql56-client-5.6.27.txz">mysql56-client-5.6.27.txz</a> = 18-Nov-2015 17:44 2077388 > <a href=3D"mysql56-server-5.6.27.txz">mysql56-server-5.6.27.txz</a> = 19-Nov-2015 20:09 8470408 > <a href=3D"php55-mysql-5.5.30.txz">php55-mysql-5.5.30.txz</a> = 06-Oct-2015 04:46 17552 >=20 >=20 >=20 > I see mysql56-server in there. Definitely. Usually, all the above could be replaced by: pkg search -x mysql56 but in this case, it would just be repeating the same result as 'pkg install' or 'pkg upgrade' -- pkg thinks that the local copy of the catalog is up to date, but it isn't and the old copy you have doesn't contain any mysql56-server packages. > Let's force a download: >=20 > Code: > $ sudo pkg install -r local mysql56-server > Updating local repository catalogue... > local repository is up-to-date. > All repositories are up-to-date. > pkg: No packages available to install matching 'mysql56-server' have be= en found in the repositories >=20 This hasn't forced anything much. There isn't really much difference between 'install' and 'upgrade' nowadays when the package you're dealing with already has an older version installed. Try 'pkg update -f' and then retry installing mysl56-server. The problem you're seeing could be caused by the clocks on your jail and on your repo being out of synch, causing pkg(8) to get it wrong about which copy of the repo catalogue is newer. Perhaps. Cheers Matthew --wmwmhv23FNK72UepcspA7PXOxwuFHcgUO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2 iQJ8BAEBCgBmBQJWTjxqXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATM54P+gP6ZXTrS/YWe/vwI7aDVxje L9oyeXffiWfcSHn7lKjKfrk3zPI7VHv9T7ZrI3ddPPEs2aBSYcyQn0DUs78CJdLS v77GH8Hr98II68nzlRt4X1GmdqzngHG0A/NuywsWZnzIo8QU3AkLamG14eT5gOh9 vo0J5mk/9sCTUNk9AptgQiLwQhi8sY91Wi/Udd8f6S08fntAsOS2MMNTxuPVOabG +2Y2VwxRRGGO76xqod7BT4MW0Gja6LbI//KiZ5o4Jp1Q5XkGWtK6ez1uHhHzQ7Ij R3OLflS8ehFMXT+Py7jarDy4W42UciPcVVFciw8WLRWWQ+AOrxll76NkpqdtZTqk f3vSQgs9vJiZPbUOZ0MXDAPgsdAX8M9pfszz8FCfUQGxaMutDTlpLfjzhVP81koq OBJmf43YVhsEAfOxGcbfDhe6DQ6dppHYrmmrtkrtikcfJUHMefrRL9dV+zBzIjDT Fc5VlrMNK8w9Q53MqCSZ19W+ONDAvbTPpY/2ArZsMBBNjkiTxdDes1UvtxKuPXdy zV3lA92CKq8DQ2naS/D90hJqpujhI38VwvRb5R/l3ARmXGTsUWOO5PIZy3qS28n5 FBaxDSMROqoD9HeJf0bX2kavmmhSr8HiEx+0z06881cwLhHXAwaFrvuIP5s6XXzn lWKutLJV3kHmtmxb93mi =WlNR -----END PGP SIGNATURE----- --wmwmhv23FNK72UepcspA7PXOxwuFHcgUO--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?564E3C62.8070306>