Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'pkg install' fails on all packages: size mismatch, fetching from remote #1581

Closed
yurivict opened this issue May 27, 2017 · 5 comments
Closed

Comments

@yurivict
Copy link
Member

yurivict commented May 27, 2017

This happens on some machines. Rerunning produces the same result.

#  pkg install zh-ibus-pinyin
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	zh-ibus-pinyin: 1.5.0_4
	py27-xdg: 0.25_1

Number of packages to be installed: 2

The process will require 2 MiB more space.
470 KiB to be downloaded.

Proceed with this action? [y/N]: y
[1/2] Fetching zh-ibus-pinyin-1.5.0_4.txz: 100%  400 KiB 409.3kB/s    00:01    
pkg: cached package zh-ibus-pinyin-1.5.0_4: size mismatch, fetching from remote
[2/2] Fetching zh-ibus-pinyin-1.5.0_4.txz: 100%  400 KiB 409.3kB/s    00:01    
pkg: cached package zh-ibus-pinyin-1.5.0_4: size mismatch, cannot continue
@yurivict
Copy link
Member Author

Now this problem is gone. Very strange ...

@bdrewery
Copy link
Member

I'm running into this consistently with 1.10.4 and I don't think it's related to #988

@bdrewery bdrewery reopened this Jan 31, 2018
@bdrewery
Copy link
Member

pkg -o OSVERSION=1200056 update -f fixes it... The OSVERSION check causes a ton of confusion for upgrade/install/fetch.

@jeffsf
Copy link

jeffsf commented May 12, 2018

Hitting this on a very fresh install on a PCEngines APU2C4, updated with freebsd-update and not much else installed

$ uname -a
FreeBSD <redacted> 11.1-RELEASE-p10 FreeBSD 11.1-RELEASE-p10 #0: Tue May  8 05:21:56 UTC 2018     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
$ uname -U
1101001
$ freebsd-version
11.1-RELEASE-p10
$ pkg version
gettext-runtime-0.19.8.1_1         =
indexinfo-0.3.1                    =
pkg-1.10.5                         =
sudo-1.8.22                        =

Repeated failures, re-running pkg update does not resolve

$ sudo pkg -d install emacs-nox
DBG(1)[5659]> pkg initialized
Updating FreeBSD repository catalogue...
DBG(1)[5659]> PkgRepo: verifying update for FreeBSD
DBG(1)[5659]> Pkgrepo, begin update of '/var/db/pkg/repo-FreeBSD.sqlite'
DBG(1)[5659]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:11:amd64/quarterly/meta.txz with opts "i"
DBG(1)[5659]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:11:amd64/quarterly/packagesite.txz with opts "i"
FreeBSD repository is up to date.
All repositories are up to date.
DBG(1)[5659]> want to get an advisory lock on a database
The following 13 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	emacs-nox: 25.3_3,3
	libxml2: 2.9.7
	gnutls: 3.5.18
	trousers: 0.3.14_2
	tpm-emulator: 0.7.4_2
	gmp: 6.1.2
	p11-kit: 0.23.10
	libtasn1: 4.13
	ca_root_nss: 3.37
	libffi: 3.2.1_2
	nettle: 3.4
	libidn2: 2.0.4
	libunistring: 0.9.9

Number of packages to be installed: 13

The process will require 142 MiB more space.
46 MiB to be downloaded.

Proceed with this action? [y/N]: y
DBG(1)[5659]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:11:amd64/quarterly/All/emacs-nox-25.3_3,3.txz with opts "i"
[1/13] Fetching emacs-nox-25.3_3,3.txz: 100%   39 MiB  13.6MB/s    00:03    
pkg: cached package emacs-nox-25.3_3,3: size mismatch, fetching from remote
DBG(1)[5659]> Fetch: fetching from: http://pkgmir.geo.freebsd.org/FreeBSD:11:amd64/quarterly/All/emacs-nox-25.3_3,3.txz with opts "i"
[2/13] Fetching emacs-nox-25.3_3,3.txz: 100%   39 MiB  20.5MB/s    00:02    
pkg: cached package emacs-nox-25.3_3,3: size mismatch, cannot continue
DBG(1)[5659]> release an advisory lock on a database

Not knowing if @bdrewery resolution was due to his working on 12.0, or a fix in general, tried

$ sudo pkg -o OSVERSION=1101001 update -f

consistent with 11.1-RELEASE.
Installed properly thereafter.

@brd
Copy link
Member

brd commented Sep 11, 2018

Duplicate of #988

@brd brd marked this as a duplicate of #988 Sep 11, 2018
@brd brd closed this as completed Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants