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
Comments
Problem description
pkg install wget fails with a Hash Sum Mismatch error
Steps to reproduce
Expected behavior
The wget package should be installed.
Cause
https://termux.mentality.rip/termux-packages-24/arm/wget_1.20.3-2_arm.deb is empty.
Several other *.deb files in that same directory are also empty:
aapt_7.1.2.33-10_arm.deb
apt-ftparchive_1.4.9-29_arm.deb
apt_1.4.9-29_arm.deb
command-not-found_1.55_arm.deb
ldc_1.22.0-3_arm.deb
wget_1.20.3-2_arm.deb
Additional information
Packages CPU architecture:
arm
Subscribed repositories:
# sources.list
deb https://termux.mentality.rip/termux-packages-24/ stable main
# game-repo (sources.list.d/game.list)
deb https://dl.bintray.com/grimler/game-packages-24 games stable
# science-repo (sources.list.d/science.list)
deb https://dl.bintray.com/grimler/science-packages-24 science stable
Updatable packages:
All packages up to date
Android version:
8.1.0
Kernel build information:
Linux localhost 3.18.71-perf-ge30d5c4 #1 SMP PREEMPT Tue Feb 5 04:51:33 CST 2019 armv7l Android
Device manufacturer:
motorola
Device model:
Moto G (5) Plus
Output of pkg install wget:
Checking availability of current mirror: ok
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
wget
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 206 kB of archives.
After this operation, 430 kB of additional disk space will be used.
Err:1 https://termux.mentality.rip/termux-packages-24 stable/main arm wget arm 1.20.3-2
Hash Sum mismatch
Hashes of expected file:
- SHA256:9fcb39a544028cac5acca72cdceafddaaaf9a2ef86e7921647d368a3f777140f
- SHA1:35070bc0badb1e18dafbd1f82b0dd249ac17bca2 [weak]
- Filesize:205510 [weak]
Hashes of received file:
- SHA256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- SHA1:da39a3ee5e6b4b0d3255bfef95601890afd80709 [weak]
- Filesize:0 [weak]
Last modification reported: Sun, 19 Apr 2020 18:21:55 +0000
E: Failed to fetch https://termux.mentality.rip/termux-packages-24/arm/wget_1.20.3-2_arm.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:9fcb39a544028cac5acca72cdceafddaaaf9a2ef86e7921647d368a3f777140f
- SHA1:35070bc0badb1e18dafbd1f82b0dd249ac17bca2 [weak]
- Filesize:205510 [weak]
Hashes of received file:
- SHA256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- SHA1:da39a3ee5e6b4b0d3255bfef95601890afd80709 [weak]
- Filesize:0 [weak]
Last modification reported: Sun, 19 Apr 2020 18:21:55 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
We recently had some problems with hitting the traffic quota on the main package host, so we had the pkg script use mirrors too, but it looks like this mirror has some problems. The good news is that the hash is stopping bad packages from getting installed, the bad news is that one of the approved mirrors is putting out such empty files.
As a workaround, you could try editing the file ~/../usr/etc/apt/sources.list to change the mirror URL there to https://dl.bintray.com/termux/termux-packages-24, then run TERMUX_PKG_NO_MIRROR_SELECT=true pkg install wget. Let me know if that fixes it for you.
OK, this is odd. I just tried pkg install wget without first updating sources.list, and it worked.
My sources.list file was updated about 2 hours ago, and looks like this:
deb https://main.termux-mirror.ml/ stable main
I didn’t (deliberately) modify it.
https://termux.mentality.rip/termux-packages-24/arm/wget_1.20.3-2_arm.deb is still empty.
Looks like server was rebooted during mirror sync or mirroring software was interrupted in a different way.
There few other zero-length packages on https://termux.mentality.rip/termux-packages-24/.
We can just bump affected packages and they will be redownloaded by mirrors.
As a workaround, you could try editing the file ~/../usr/etc/apt/sources.list
We have script termux-change-repo, so no need to edit files manually. TERMUX_PKG_NO_MIRROR_SELECT=true is still needed to prevent mirror change, if selected manually.
I have the same problem with my mirror (where I use ftpsync).
I wrote an ugly python script to compare the hashes of the debs with the hash in the Packages files and delete debs that don’t match.
So far I have just been running it every now and then, but I should perhaps setup a timer to run it every 6 hours or something (just need to make sure it is not run at the same time as the mirror update script)
termux
locked and limited conversation to collaborators
Oct 9, 2021
Problem description
Whenever I try to install wget, or any external package at that, it gives me this message:
$ pkg install wget
Testing the available mirrors:
[*] https://packages.termux.org/apt/termux-main: ok
[*] https://deb.kcubeterm.me/termux-main: ok
[*] https://termux.mentality.rip/termux-main: ok
[*] https://grimler.se/termux-packages-24: ok
[*] https://termux.librehat.com/apt/termux-main: ok
Picking mirror: https://grimler.se/termux-packages-24
Get:1 https://packages.termux.org/apt/termux-games games InRelease [7999 B]
Get:2 https://packages.termux.org/apt/termux-science science InRelease [8011 B]
Get:3 https://grimler.se/termux-packages-24 stable InRelease [16.8 kB]
Err:3 https://grimler.se/termux-packages-24 stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B0076E490B71616B
Reading package lists... Done
W: GPG error: https://grimler.se/termux-packages-24 stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B0076E490B71616B
E: The repository 'https://grimler.se/termux-packages-24 stable InRelease' is not signed.
N: Metadata integrity can't be verified, repository is disabled now.
N: Possible cause: repository is under maintenance or down (wrong sources.list URL?).
Now, this has never happened before. Previously, it
worked perfectly. This only just now started to happen
Steps to reproduce the behavior.
What is the expected behavior?
$ pkg install wget
Testing the available mirrors:
[*] https://packages.termux.org/apt/termux-main: ok
[*] https://deb.kcubeterm.me/termux-main: ok
[*] https://termux.mentality.rip/termux-main: ok
[*] https://grimler.se/termux-packages-24: ok
[*] https://termux.librehat.com/apt/termux-main: ok
Picking mirror: https://grimler.se/termux-packages-24
Get:1 https://packages.termux.org/apt/termux-games games InRelease [7999 B]
Get:2 https://packages.termux.org/apt/termux-science science InRelease [8011 B]
Get:3 https://grimler.se/termux-packages-24 stable InRelease [16.8 kB]
Err:3 https://grimler.se/termux-packages-24 stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B0076E490B71616B
Reading package lists... Done
W: GPG error: https://grimler.se/termux-packages-24 stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B0076E490B71616B
E: The repository 'https://grimler.se/termux-packages-24 stable InRelease' is not signed.
N: Metadata integrity can't be verified, repository is disabled now.
N: Possible cause: repository is under maintenance or down (wrong sources.list URL?).
System information
- Termux application version: 0.115
- Android OS version: 11 (Q)
- Device model: Motorola Moto G7
Problem description
Whenever I try to install wget, or any external package at that, it gives me this message:
$ pkg install wget
Testing the available mirrors:
[*] https://packages.termux.org/apt/termux-main: ok
[*] https://deb.kcubeterm.me/termux-main: ok
[*] https://termux.mentality.rip/termux-main: ok
[*] https://grimler.se/termux-packages-24: ok
[*] https://termux.librehat.com/apt/termux-main: ok
Picking mirror: https://grimler.se/termux-packages-24
Get:1 https://packages.termux.org/apt/termux-games games InRelease [7999 B]
Get:2 https://packages.termux.org/apt/termux-science science InRelease [8011 B]
Get:3 https://grimler.se/termux-packages-24 stable InRelease [16.8 kB]
Err:3 https://grimler.se/termux-packages-24 stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B0076E490B71616B
Reading package lists... Done
W: GPG error: https://grimler.se/termux-packages-24 stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B0076E490B71616B
E: The repository 'https://grimler.se/termux-packages-24 stable InRelease' is not signed.
N: Metadata integrity can't be verified, repository is disabled now.
N: Possible cause: repository is under maintenance or down (wrong sources.list URL?).
Now, this has never happened before. Previously, it
worked perfectly. This only just now started to happen
Steps to reproduce the behavior.
What is the expected behavior?
$ pkg install wget
Testing the available mirrors:
[*] https://packages.termux.org/apt/termux-main: ok
[*] https://deb.kcubeterm.me/termux-main: ok
[*] https://termux.mentality.rip/termux-main: ok
[*] https://grimler.se/termux-packages-24: ok
[*] https://termux.librehat.com/apt/termux-main: ok
Picking mirror: https://grimler.se/termux-packages-24
Get:1 https://packages.termux.org/apt/termux-games games InRelease [7999 B]
Get:2 https://packages.termux.org/apt/termux-science science InRelease [8011 B]
Get:3 https://grimler.se/termux-packages-24 stable InRelease [16.8 kB]
Err:3 https://grimler.se/termux-packages-24 stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B0076E490B71616B
Reading package lists... Done
W: GPG error: https://grimler.se/termux-packages-24 stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B0076E490B71616B
E: The repository 'https://grimler.se/termux-packages-24 stable InRelease' is not signed.
N: Metadata integrity can't be verified, repository is disabled now.
N: Possible cause: repository is under maintenance or down (wrong sources.list URL?).
System information
- Termux application version: 0.115
- Android OS version: 11 (Q)
- Device model: Motorola Moto G7
I ran into similar with
wireshark
and
emerald
installs just now, same
Code:
Checking integrity...Assertion failed: (pkgdb_ensure_loaded(j->db, p2,
PKG_LOAD_FILES|PKG_LOAD_DIRS) == EPKG_OK), function
pkg_conflicts_need_conflict, file pkg_jobs_conflicts.c, line 211.
Child process pid=71669 terminated abnormally: Abort trap
but different PID of course.
The issue is a conflict between a new dependency and an older one already installed. I was fortunate enough to discover in the case of these two pkg install ... failures that the suspect was the replacement of
gettext-0.18.3.1_1
with
gettext-runtime-0.19.3
because my errors at least managed to pkg add the already-downloaded file which revealed the culprit since it was in
/var/cache/pkgs
.
If you check that directory for the install that you wanted, and it is there, trying pkg add ... on the file in question will reveal the actual conflict.
(FreeBSD geezer moment warning!) I’ve been with FreeBSD since the 4.x versions and I’m saddened at the deprecation of the old
pkg_
tools. Sure they were clunky and old and tired and all, but if you replaced a dependency, it had this really neat way of letting you quickly rebuild all packages’ dependencies once you replaced a dependency package. I’m still trying to figure out how to do that with PKGNG without having to go all
poudriere
on it and all sorts of other nonsense. Saddens me to see so many Linuxisms of «not ready for prime time» changes for the sake of change replacing what always worked reliably.
pkg 1.4.0
replaced what was to me, a perfectly fine 1.3.8 and suddenly I find myself stopped cold on a project.
Now that I’ve figured out what caused that in my case though, wanted to point out how to at least pursue the insects until
1.4.0_1
or whatever. My own attitude at the moment though is when I am presented with
I will hit that N key so hard and fast that I’ll need a new keyboard until I see how it works for other, less mission-critical users first. (grin)
Grrrrr.
One last thought for the developer (who I know is working hard on this). The code in pkg add reveals the issue. Perhaps, copy that code over to pkg install when it encounters a conflict and everybody can be happy.
Even better (wish I had a copy of
pkg_
around, I could remember the function that would go through all of the packages and update dependencies when they’ve been changed), if anyone can turn me on to the trick with PKGNG, it would be extremely appreciated!
This topic has been deleted. Only users with topic management privileges can see it.
Hello,
I need to user wget (and others one), but I think I am confronted with a spirit of dependence :
pkg_add -r wget
Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/wget.tbz: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch ‘ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.2-release/Latest/wget.tbz’ by URL
so I’ve done :
setenv PACKAGESITE ftp://ftp4.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/
pkg_add -r redir
Fetching ftp://ftp4.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/redir.tbz… Done.
pkg_add: package ‘redir-2.2.1_2’ or its older version already installedpkg_version -v
cd /usr/local/lib
and finally :
pkg_add -r wget
Fetching ftp://ftp4.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/wget.tbz… Done.
pkg_add: warning: package ‘wget-1.11’ requires ‘libiconv-1.11_1’, but ‘libiconv-1.9.2_2’ is installed
pkg_add: warning: package ‘wget-1.11’ requires ‘gettext-0.16.1_3’, but ‘gettext-0.14.5_2’ is installed
Have you any idea on how to solve this problem?
Thank you 🙂
pkg_add
libiconv-1.11_1 & gettext-0.16.1_3
pkg_add -r libiconv-1.11_1 Error: FTP Unable to get ftp://ftp4.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/libiconv-1.11_1.tbz: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch ‘ftp://ftp4.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/libiconv-1.11_1.tbz’ by URL
You can search here.
http://portsmon.freebsd.org/portoverview.py?category=&portname=libiconv&wildcard=
It shows.
ftp://ftp4.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/All/libiconv-1.11_1.tbz
You can then.
setenv PACKAGESITE ftp://ftp4.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/All/
Then hope for the best.
pkg_add -r libiconv-1.11_1.tbz
pkg_add -r libiconv-1.11_1.tbz
Fetching ftp://ftp4.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/All/libiconv-1.11_1.tbz… Done.
pkg_add: package ‘libiconv-1.11_1’ or its older version already installed
For example if I launch nano :
nano
/libexec/ld-elf.so.1: Shared object «libintl.so.8» not found, required by «nano»
Now i remember you……….
Use this version of pfSense
http://cvs.pfsense.org/~sullrich/testing_images/6/FreeBSD_RELENG_6_3/pfSense_RELENG_1_2/
I don’t really understand what that means :s ?
Stop bothering with wget, use fetch. It’s already on the box.
I did not know, I think that WGET was universal.
No solution for my original problem because I’ve others issues with this lib :/
Wget isn’t universal, its just what all the linux distributions use and so that’s what you’re familiar with. Learn to use fetch, its simple.
In the beginning I want to correct my problem starting, because I can not install any package. (I am not against the use of fetch)