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 update fail to unpack downloaded archive. #1290
Comments
Which pkg version are you using? (pkg -vv output will be enough) |
No proxy or any blocking software used. On the same server I can "lynx to" http://pkg0.bme.FreeBSD.org/FreeBSD:10:amd64/latest without any problems, download any archive and all downloaded archives are correct. Running pkg --debug update -f also doesn't reveal much info, the same error about extract error and signature.
And here is output you asked for.
|
That's strange. Can you please for comment one line in your /usr/local/etc/pkg/repos/FreeBSD.conf to make sure mirror is OK for sure (like this):
At is possible:
|
MD5 (packagesite.txz) = cae27b2be033ed4ef95a9321eae983b0 Yandex mirror gives the same. Upgrade to 10.1 didn't help. I'm not familiar with all procedures pkg does upon updating packages but it looks like a broken pkg update mechanism. |
BTW if there is a way to put reliably known correct FreeBSD.meta instead of zero-length one and try to run package update again? But where to get one? |
hum can you show please show me uname -a and file /bin/sh |
Yes, it used to be 9.x and then 10.0 when it came to production and now 10.1 I guess mirror enforcing left since 9.x as there were some issued but that didn't appear to be a problem until the last week or so. Putting back default (at any location either /etc or /usr/local…) doesn't really help — produces the same error.
Kernel is custom built one but options hasn't changed since 10.0 when pkg used to work
|
I suspect something went wrong during you upgrade, can you try first pkg bootstrap -f |
Bootstrapping didn't help, unfortunately. As regard to upgrade, whole thing used to work and time to time I do run The message that disturbs me come from pkg/libpkg/pkg_repo.c# lines 141-144. To me it looks like a broken signature/hash checking routines on the particular installation but why that could have happened — pure mystery 😔 |
i did try to repeat this case, but no luck. |
You can grab dump from http://lasman.info/pkg-update.ktrace.txz I'm not a guru of reading dumps but this part, which is just after receiving chunks of data from remote host looks disturbing
What's that capability mode is? |
I really do not understand what tries to run stat and is not allowed to... |
Sorry I misread the kdump, this failure you are showing are not related to your issue (even if they should be fixed) the issue happens before, All the "No signature found" beside I can see the signature being read in the sandbox, but somehow it is not passed to the application... |
is it possible that you do grab the pkg distfiles, run ./configure and send me the config.log and pkg_config.h that has been created? |
Also can you show |
So, ldd shows no problem
but…
Does it mean Lzma is broken? |
Right so that confirms something is wrong with your upgrade! the only difference between pkg-static and pkg is that pkg-static the fact that pkg-static does not use local libraries. How to you perform your upgrade? |
Btw the is strange: Installed packages to be REINSTALLED: and is not supposed to happen given pkg "need libraries" |
Well, as usual: BTW, @bapt do you still need |
That will help yes |
@bapt available at http://lasman.info/pkg.config.tgz P.S. If there are PMs at GitHub? |
PMs? hum I see nothing wrong in you configure... |
I meant Private Messages :) |
nope |
Hm, same ldd from my box (10.1-RELEASE-p15)
You have some libthr... |
First file include second folder and both are empty. |
well, bad news here is that your system damaged.. I can only suggest you to try fetch 10.1-RELEASE sources from SVN and rebuild system(kernel/userbase) once more time. It strange what you don't having issues with other applications on this server. |
at i think you can try use pig-static till that moment as workaround. If it will work for you. |
freebsd-update will work with custom kernels. You should edit /etc/freebsd-update.conf and change:
to
(or drop src as well if you're checking the system sources out of SVN.) Of course, given this you will need to build and install a new kernel when a patch level update affects its sources. OP could also try freebsd-update's IDS mode to see if you can spot any libraries that don't match the known checksums from the freebsd-update distribution. |
as we found issue not related to pkg. |
Apologies for digging up an old thread. I just ran into the same issue. Figured out I had built a newer version of lzma, which placed a symlink in /usr/local/lib for liblzma.so.5 to liblzma.so.5.2. Running ldd showed pkg loading /usr/lib/liblzma.so.5, but this is not the case. Removing the errant symlink solved the issue. |
I just ran into the same issue. I solved it by manually download the pkg binaries from pkg.freesd.org |
which version of pkg are you using? |
@bapt 1.13.2 I am using 13.0-CURRENT. |
Since about a week or two, cannot update packages — pkg update fails on unpacking downloaded file. There is plenty of disk space (over 50Gb) and permissions are correct everywhere.
Here is and machine info
and pkg update output
The text was updated successfully, but these errors were encountered: