Forum › Forums › New users › New Users and General Questions › (solved) AntiX17 apt upgrade: Hash Sum mismatch
- This topic has 9 replies, 3 voices, and was last updated Jan 8-8:19 pm by Anonymous.
-
AuthorPosts
-
January 5, 2018 at 9:40 pm #4767Member
RenzoBenzo
Hello All,
It’s been awhile since I’ve used a debian based system, but when I try to update and upgrade I get this:
E: Failed to fetch http://repo.antixlinux.com/testing/pool/main/a/adobe-flashplugin/adobe-flashplugin_20171114.1-1mx17+1_amd64.deb Hash Sum mismatch Hashes of expected file: - SHA256:cabad7f7ebd680bf6a81279bbbe18bbc4fee947c6697fe563b9b5498b4abc994 - SHA1:5121c49e94226ffd2b5f97933977b41e0e892e03 [weak] - MD5Sum:6fd75bd2acddadbfe14bf5d3f49214d3 [weak] - Filesize:9768430 [weak] Hashes of received file: - SHA256:221484b4fc2d7dafa5a6ce9d907622cb7a956cdedf4ed5bf044ecde4d29c6ed8 - SHA1:006e668cf0321ec5f5424ca01ed65e46f24542f9 [weak] - MD5Sum:47b0af7914c2d3bec6c77b3adbd6f3c6 [weak] - Filesize:9768430 [weak] Last modification reported: Thu, 16 Nov 2017 20:59:18 +0000 E: Failed to fetch http://repo.antixlinux.com/testing/pool/main/i/icewm-themes-antix/icewm-themes-antix_0.2.8_all.deb Hash Sum mismatch Hashes of expected file: - SHA256:6949d42fb76d60cced5518646e980d56ac9bc94b33ccd7f642bd33848935eb8e - SHA1:1234fb3eefbef6f723650e59aa666d4ef022c76d [weak] - MD5Sum:30c5ab4c62a4e225165a449d91c11137 [weak] - Filesize:770828 [weak] Hashes of received file: - SHA256:e992fbc293d6798d11dfd4b4d63f52851f89c7d2a64611a3e797835967cbd4bb - SHA1:1a39610377a7f4d89074dae20ffa4bded6fd5dc0 [weak] - MD5Sum:927c91c6deea11ae8881ce1fd6e23611 [weak] - Filesize:770828 [weak] Last modification reported: Sun, 12 Nov 2017 17:53:00 +0000 E: Failed to fetch http://repo.antixlinux.com/testing/pool/nosystemd/x/xorg-server/xserver-xorg-core_1.19.5-1.0nosystemd1_amd64.deb Hash Sum mismatch Hashes of expected file: - SHA256:ecd6e8b97d7e9280d72da8057e2faaab0bc835535bf7ee1449405d17adf0ab6d - SHA1:d3bcded9e8d77feb124fd039cc28e107491ed6ba [weak] - MD5Sum:ea519ffba6f9230e3705eda18da79c04 [weak] - Filesize:3395186 [weak] Hashes of received file: - SHA256:a3c280f565c8782a2961be3f18979f6e6208455ff1e25f372bcab0acd705c9b3 - SHA1:4a9a40c8fd60de02516d587076e1bbdffd937d14 [weak] - MD5Sum:afca19e9607e4e5d43126c1a40eeb533 [weak] - Filesize:3395186 [weak] Last modification reported: Sat, 21 Oct 2017 01:57:41 +0000 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?I’ve tried:
apt-get update apt-get clean apt-get autoclean apt-get update && upgrade or apt-get --dist-upgradeI guess the hashes don’t match and was wondering if anyone had thoughts on it or solutions?
Thanks
January 6, 2018 at 12:01 pm #4800Anonymous
::Which antiX version (e.g “antiX17 Full 32bit”) are you using?
Are you are attempting to upgrade a freshly-installed system, or (re “been awhile”) this is an existing system which has been idle across months?January 6, 2018 at 4:31 pm #4810Forum Admin
rokytnji
::Fresh install on my
$ inxi -Fxrz System: Host: biker Kernel: 4.10.5-antix.3-amd64-smp x86_64 bits: 64 gcc: 6.3.0 Desktop: IceWM 1.4.2 Distro: antiX-17_x64-full Heather Heyer 24 October 2017 Machine: Device: laptop System: Dell product: Latitude E4310 v: 0001 serial: N/A Mobo: Dell model: 0T6M8G v: A01 serial: N/A BIOS: Dell v: A03 date: 07/08/2010 Battery BAT0: charge: 48.8 Wh 127.0% condition: 38.5/48.8 Wh (79%) model: Samsung SDI DELL RM6618A status: Full CPU: Dual core Intel Core i5 M 520 (-MT-MCP-) arch: Nehalem rev.5 cache: 3072 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9581 clock speeds: max: 2400 MHz 1: 1599 MHz 2: 1333 MHz 3: 1599 MHz 4: 1733 MHz Graphics: Card: Intel Core Processor Integrated Graphics Controller bus-ID: 00:02.0 Display Server: X.Org 1.19.2 driver: intel Resolution: 1366x768@60.00hz OpenGL: renderer: Mesa DRI Intel Ironlake Mobile version: 2.1 Mesa 13.0.6 Direct Render: Yes Audio: Card Intel 5 Series/3400 Series High Definition Audio driver: snd_hda_intel bus-ID: 00:1b.0 Sound: Advanced Linux Sound Architecture v: k4.10.5-antix.3-amd64-smp Network: Card-1: Intel 82577LM Gigabit Network Connection driver: e1000e v: 3.2.6-k port: 6040 bus-ID: 00:19.0 IF: eth0 state: down mac: <filter> Card-2: Intel Centrino Advanced-N 6200 driver: iwlwifi bus-ID: 02:00.0 IF: wlan0 state: up mac: <filter> Drives: HDD Total Size: 60.0GB (39.3% used) ID-1: /dev/sda model: KINGSTON_SV300S3 size: 60.0GB Partition: ID-1: / size: 7.7G used: 3.2G (44%) fs: ext4 dev: /dev/sda2 ID-2: /home size: 48G used: 19G (43%) fs: ext4 dev: /dev/sda1 Sensors: System Temperatures: cpu: 56.0C mobo: N/A Fan Speeds (in rpm): cpu: N/A Repos: Active apt sources in file: /etc/apt/sources.list.d/antix.list deb http://repo.antixlinux.com/stretch stretch main nosystemd Active apt sources in file: /etc/apt/sources.list.d/debian-stable-updates.list deb http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free Active apt sources in file: /etc/apt/sources.list.d/debian.list deb http://ftp.us.debian.org/debian/ stretch main contrib non-free deb http://security.debian.org/ stretch/updates main contrib non-free Info: Processes: 198 Uptime: 1:17 Memory: 855.1/7912.1MB Init: SysVinit runlevel: 5 Gcc sys: 6.3.0 Client: Shell (bash 4.4.121) inxi: 2.3.53Fresh dist-upgrade also done with no errors
# apt -f install Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.Just installing backup stuff to complete install.
harry@biker:~ $ ls Backups cl1 Games Images SpaceFM_plugins Wallpaper Bandits Desktop icewmc.xpm Isos stuff weather.sh batti-0.3.8 Documents icewm.xpm Music uhhuh Books Downloads icons Pictures VideosSo far. About a hour worth of work.
Just helping on how to post a question is all. Howdy and Welcome.
Not sure how yours is screwed up yet. Might wanna look into dpkg -reconfigure maybe.
https://manpages.debian.org/stretch/debconf/dpkg-reconfigure.8.en.html
- This reply was modified 5 years, 4 months ago by rokytnji.
- This reply was modified 5 years, 4 months ago by rokytnji.
Sometimes I drive a crooked road to get my mind straight.
Not all who Wander are Lost.
I'm not outa place. I'm from outer space.Linux Registered User # 475019
How to Search for AntiX solutions to your problemsJanuary 6, 2018 at 7:52 pm #4814Member
RenzoBenzo
::@skidoo, it’s antix-17 64-bit and freshly installed. The been awhile comment as just supposed to mean I haven’t used a debian based OS for 4 or 5 years, so I’ve forgot some of the commands.
@roky, i’ll try to use the command you used and will report back.
January 6, 2018 at 10:35 pm #4818Anonymous
::Removing the previously-downloaded package lists resiging in /var/lib/apt/lists directory should resolve the problem.
( Afterward, fresh copies will be downloaded when you next perform sudo apt update )As sudo/root, Open a terminal emulator (e.g. urxvt, lxterminal) or file manager, and navigate to /var/lib/apt/lists/
and delete the contents of that directory. Afterward, again perform sudo apt update (and, if you wish, sudo apt upgrade)These linked pages describe the situation and corroborate the solution I’ve “explained” above.
I’m “explaining” rather than typing out exact command(s) b/c I discourage the practice of copy/pasting from web browser into terminal prompt
(especially when the command involves a “rm” operation!)
https://stackoverflow.com/questions/15505775/debian-apt-packages-hash-sum-mismatch
https://askubuntu.com/questions/41605/trouble-downloading-packages-list-due-to-a-hash-sum-mismatch-error/January 7, 2018 at 10:23 pm #4842Member
RenzoBenzo
::Hi, sorry for the delay.
@rokytnji, your suggestion did not work and the same stuff popped up as above. Sould I copy pasta the
inxi -Fxrzcommand here?@skidoo, your suggestion didn’t work either as I got the same error as my initial.
What I did to get it to upgrade was to temporarily disable the antix repo as it was the one causing the error. I had to disable them via synaptic as it seems /etc/apt/sources.list is no longer where the mirrors/sources are kept. I guess there soomething up with the antix repo
Anyways thanks for y’alls help. 🙂
- This reply was modified 5 years, 4 months ago by RenzoBenzo.
January 8, 2018 at 12:09 am #4845Anonymous
::/etc/apt/sources.list is no longer whereDebian began transitioning away from a single “/etc/apt/sources.list” file allaway back in 2012, or earlier.
I searched just now, trying to find docs regarding “if directory sources.list.d exists, /etc/apt/sources.list will be ignored?” and didn’t find a clear answer. I did find explanations describing benefits of adopting the multi-list approach, in case you care to skim/read:
https://stackoverflow.com/questions/26020917/what-is-the-function-of-etc-apt-sources-list-d
https://unix.stackexchange.com/questions/407328/what-is-the-benefit-of-etc-apt-sources-list-d-over-etc-apt-sources-list
https://askubuntu.com/questions/82825/do-files-at-etc-apt-sources-list-d-need-to-have-an-extension-listJanuary 8, 2018 at 7:58 pm #4876Member
RenzoBenzo
::@skidoo, I found where the source list is. They’re like separate lists inside /etc/apt/sources.list.d/
I got it so I can update and upgrade using the antix repo without the hash mismatch by forcing the repo to use ssl. Apparently accessing apt archives over HTTP can potentially lead to bugs. So like for example:
`sudo nano /etc/apt/sources.list.d/antix.list`Then change for example:
deb http://repo.antixlinux.com/testing/ testing main nosystemd
to
deb https://repo.antixlinux.com/testing/ testing main nosystemdHere’s a site I found for hash mismatch errors and apt, and solutions:
https://blog.packagecloud.io/eng/2016/09/27/fixing-apt-hash-sum-mismatch-consistent-apt-repositories/- This reply was modified 5 years, 4 months ago by RenzoBenzo. Reason: fixed the format
January 8, 2018 at 8:09 pm #4879Member
RenzoBenzo
::Hmmm… I just wrote out what I did to get the antix repo to upgrade as well and it disappeared from here. A shortened version of what I wrote is you gotta change the antix repo to use ssl regarding the hash mismatch or the options suggested in this page
Now it’s fully solved for me. 🙂
January 8, 2018 at 8:19 pm #4882Anonymous
::Thanks for reporting the solution.
Unsure what triggered the forum’s spamfilter for post #4876, but FYI that’s what happened when it “disappeared”.
-
AuthorPosts
- You must be logged in to reply to this topic.