#450510 "HASH SUM MISMATCH" errors in apt, versions > 0.7.6

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
Uwe Bugla
Date:
2022-05-24 16:15:03 UTC
Severity:
normal
#450510#5
Date:
2007-11-07 18:46:56 UTC
From:
To:
Hello everybody,

(same message as yesterday, ccing all relevant maintainers of apt, apt-utils,
aptitude, and synaptic this time)

using Debian Sid I stumble over lots of HASH SUM MISMATCHES in connection with
apt versions > 0.7.6.

That concerns only self-built Debian packages that I host locally.
(call them unofficial ones if you may wish).

Within version 0.7.6 or earlier this error does not appear at all.

Can someone reading that please:

a. reproduce the error?

b. fix that bug?

Just take a self-built Debian package which is NOT part of any official distro
and host it on a local server of your personal choice under f. ex.
var/www/apache2-default/mydebian/pool/main/*/(appname)/(app).

Imply the self-built packages' path to its repository in etc/apt/sources.list
(f. ex.: deb http://192.168.0.1/apache2-default/mydebian/ sid main non-free)

on the server and at least one workstation.

Then try to install the package using synaptic, kpackage or apt-get install...

Then you should be able to reproduce the error on your own:
The relevant package will _hang_ in directory /var/cache/apt/archives/partial.
It will refuse to get installed at all.

That can't be a real solution, can it?

Thanks

Uwe

#450510#10
Date:
2007-11-12 04:17:42 UTC
From:
To:
On Wed, Nov 07, 2007 at 07:46:56PM +0100, Uwe Bugla <uwe.bugla@gmx.de> was heard to say:

  Could you please send a transcript of an apt session, illustrating the
error you're talking about, to this bug report?  If possible (e.g., they aren't
secret or too large), please also post your sources.list and the contents of the
Packages file that's giving you trouble.

  I just set up a local repository and was able to install packages from
it without any trouble.

  You're saying apt goes into an infinite loop trying to install your
packages?

  Daniel

#450510#15
Date:
2007-11-12 15:39:48 UTC
From:
To:
  The submitter replied via private email.  It appears that he somehow
got a Packages file without any cryptographic checksums (not sure how);
I get the same behavior if I remove the cryptographic checksums from my
Packages file.  If this is intended behavior (and it makes sense to me),
apt should probably detect the missing sums and generate a different
error from the error it generates for a sum mismatch.

  Daniel

#450510#20
Date:
2007-11-12 16:03:38 UTC
From:
To:
Am Montag, 12. November 2007 16:39:48 schrieben Sie:

manually, i. e. naively without using apt-ftparchive as command as a
consequence of lacking experience :)

I fully agree :)

Error messages should make constructive sense that makes the user sensitive
for the what and why of the problem.....
Would be nice to see some change here in order to avoid future
misunderstandings......

Regards

Uwe

#450510#25
Date:
2007-11-12 18:09:45 UTC
From:
To:
Hello everybody, hello Michael, hello Daniel,

If I open a console and enter the following:

apt-ftparchive

I get the following outprint:

Example usage from the Debian archive:
apt-ftparchive packages dists/potato/main/binary-i386/ > \
               dists/potato/main/binary-i386/Packages

This example is not only misleading, but it is illogical too:

Instead it should read:

apt-ftparchive packages pool/main/ > dists/potato/main/binary-i386/Packages

Only in this case the first part points to the hierarchically organized
repository where the packages in question are situated,

and the second part describes the path where the Packages file should be
written to.


If I enter the command conforming literally to the existing example the result
will always be a Packages file with zero length.

And that is what's buggy about the existing example in version 0.7.9.

Can one of you please fix that in the next version of apt??

Regards

Uwe

#450510#30
Date:
2008-06-30 23:13:26 UTC
From:
To:
When I try to apt-get update I get a Hash Sum mismatch error.
"W: Failed to fetch
http://natasha.stmarytx.edu/debian/dists/sid/main/source/Sources.bz2
Hash Sum mismatch"
This does not happen with aptitude.  If I remove deb-src (no sources) it
works.

#450510#39
Date:
2017-01-26 02:16:07 UTC
From:
To:
Dear Customer,

Your parcel was successfully delivered January 23 to USPS Station, but our courier cound not contact you.

Please check the attachment for details!

Kind regards,
Daniel Gilmore,
USPS Senior Office Manager.

#450510#44
Date:
2021-08-15 06:48:26 UTC
From:
To:
REMINDER!!!

 Dear Customer,

 We attempted to deliver your item at 2:30pm on 14th August, 2021. (Read enclosed file details)
 The delivery attempt failed because nobody was present at the shipping address, so this notification has been automatically sent.

 If the package is not scheduled for re-delivery or picked up within 72 hours, it will be returned to the sender.



 Label Number: (Read enclosed file details)
 Class: Package Services
 Service(s): (Read enclosed file details)
 Status: e-Notification sent


 Read the enclosed file for details.


 DHL Customer Service.
2021 © DHL International GmbH. All rights reserved.
 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

#450510#49
Date:
2021-10-29 16:07:26 UTC
From:
To:
Dear Customer,
 We attempted to dispatch your item at 3:30pm on 29th Oct, 2021. (Read enclosed file details)
The dispatch attempt failed because nobody was present at the shipping address, so this notification has been automatically sent.

If the parcel is not scheduled for re-dispatch or picked up within 48 hours, it will be returned to the sender.

Label Number: (Read enclosed file details)
Class: Package Services
Service(s): (Read enclosed file details)
Status: e-Notification sent

Read the enclosed file for details.
 DHL Customer Service.

#450510#54
Date:
2022-05-23 23:44:19 UTC
From:
To:
Payment Invoice from Mar Walton

Kindly check the attachment for the invoice