View Issue Details

IDProjectCategoryView StatusLast Update
0002302Kali LinuxKali Package Bugpublic2015-06-01 06:41
ReporterZero_Chaos Assigned Torhertzog  
PrioritynormalSeveritymajorReproducibilitysometimes
Status closedResolutionno change required 
Product Version1.1.0 
Summary0002302: debian-archive-keyring appears to contain corrupted file
Description

debian-archive-keyring_2014.3~deb7u1_all.deb contains files with bad checksums

Steps To Reproduce

root@pwnphone:/# apt-get update
Get:1 http://security.kali.org kali/updates Release.gpg [819 B]
Get:2 http://http.kali.org kali Release.gpg [819 B]
Get:3 http://security.kali.org kali/updates Release [11.0 kB]
Get:4 http://http.kali.org kali Release [21.1 kB]
Get:5 http://security.kali.org kali/updates/main armhf Packages [342 kB]
Get:6 http://http.kali.org kali/main armhf Packages [7717 kB]
Ign http://security.kali.org kali/updates/contrib Translation-en
Ign http://security.kali.org kali/updates/main Translation-en
Ign http://security.kali.org kali/updates/non-free Translation-en
Ign http://http.kali.org kali/contrib Translation-en
Ign http://http.kali.org kali/main Translation-en
Ign http://http.kali.org kali/non-free Translation-en
Get:7 http://security.kali.org kali/updates/contrib armhf Packages [20 B]
Get:8 http://http.kali.org kali/non-free armhf Packages [87.2 kB]
Get:9 http://security.kali.org kali/updates/non-free armhf Packages [20 B]
Get:10 http://http.kali.org kali/contrib armhf Packages [42.2 kB]
Fetched 8223 kB in 15s (515 kB/s)
Reading package lists... Done
root@pwnphone:/# apt-get install --reinstall debian-archive-keyring
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
bundler python-impacket-doc
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
Need to get 0 B/60.7 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 125610 files and directories currently installed.)
Preparing to replace debian-archive-keyring 2014.3~deb7u1 (using .../debian-archive-keyring_2014.3~deb7u1_all.deb) ...
Unpacking replacement debian-archive-keyring ...
Setting up debian-archive-keyring (2014.3~deb7u1) ...
root@pwnphone:/# debsums -a debian-archive-keyring
/usr/share/doc/debian-archive-keyring/README OK
/usr/share/doc/debian-archive-keyring/changelog.gz OK
/usr/share/doc/debian-archive-keyring/copyright OK
/usr/share/keyrings/debian-archive-keyring.gpg OK
/usr/share/keyrings/debian-archive-removed-keys.gpg OK
/etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg FAILED
/etc/apt/trusted.gpg.d/debian-archive-squeeze-stable.gpg OK
/etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg OK
/etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg OK
/etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg OK
/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg OK
/etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg FAILED

Activities

Zero_Chaos

Zero_Chaos

2015-05-29 15:25

reporter   ~0003342

this is failing for me on armv7 but not on amd64

Zero_Chaos

Zero_Chaos

2015-05-29 18:38

reporter   ~0003344

able to reproduce it on amd64, so this appears inconsistent. possibly one bad mirror?

rhertzog

rhertzog

2015-05-30 18:50

administrator   ~0003348

Or bad hard disk or cosmic ray... modified files in /etc are preserved because they are "configuration files" so the reinstallation will not overwrite the modified file on your system.

Try it with « apt-get -o options::dpkg::="--force-confask" --reinstall install debian-archive-keyring » and it will offer you to replace the file.

Zero_Chaos

Zero_Chaos

2015-05-30 19:08

reporter   ~0003349

root@localhost:/# debsums -a debian-archive-keyring
/usr/share/doc/debian-archive-keyring/README OK
/usr/share/doc/debian-archive-keyring/changelog.gz OK
/usr/share/doc/debian-archive-keyring/copyright OK
/usr/share/keyrings/debian-archive-keyring.gpg OK
/usr/share/keyrings/debian-archive-removed-keys.gpg OK
/etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg FAILED
/etc/apt/trusted.gpg.d/debian-archive-squeeze-stable.gpg OK
/etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg OK
/etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg OK
/etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg OK
/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg OK
/etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg FAILED
root@localhost:/# apt-get clean
root@localhost:/# apt-get update
Get:1 http://security.kali.org kali/updates Release.gpg [819 B]
Get:2 http://http.kali.org kali Release.gpg [819 B]
Get:3 http://security.kali.org kali/updates Release [11.0 kB]
Get:4 http://http.kali.org kali Release [21.1 kB]
Get:5 http://security.kali.org kali/updates/main armhf Packages [342 kB]
Get:6 http://http.kali.org kali/main armhf Packages [7717 kB]
Ign http://security.kali.org kali/updates/contrib Translation-en
Ign http://security.kali.org kali/updates/main Translation-en
Ign http://security.kali.org kali/updates/non-free Translation-en
Ign http://http.kali.org kali/contrib Translation-en
Ign http://http.kali.org kali/main Translation-en
Ign http://http.kali.org kali/non-free Translation-en
Get:7 http://security.kali.org kali/updates/contrib armhf Packages [20 B]
Get:8 http://http.kali.org kali/non-free armhf Packages [87.2 kB]
Get:9 http://security.kali.org kali/updates/non-free armhf Packages [20 B]
Get:10 http://http.kali.org kali/contrib armhf Packages [42.2 kB]
Fetched 8223 kB in 14s (551 kB/s)
Reading package lists... Done
bian-archive-keyringt-get -o options::dpkg::="--force-confask" --reinstall install de
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
bundler python-impacket-doc
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.
Need to get 60.7 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://http.kali.org/kali/ kali/main debian-archive-keyring all 2014.3~deb7u1 [60.7 kB]
Fetched 60.7 kB in 10s (5671 B/s)
(Reading database ... 125610 files and directories currently installed.)
Preparing to replace debian-archive-keyring 2014.3~deb7u1 (using .../debian-archive-keyring_2014.3~deb7u1_all.deb) ...
Unpacking replacement debian-archive-keyring ...
root@localhost:/# debsums -a debian-archive-keyring
/usr/share/doc/debian-archive-keyring/README OK
/usr/share/doc/debian-archive-keyring/changelog.gz OK
/usr/share/doc/debian-archive-keyring/copyright OK
/usr/share/keyrings/debian-archive-keyring.gpg OK
/usr/share/keyrings/debian-archive-removed-keys.gpg OK
/etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg FAILED
/etc/apt/trusted.gpg.d/debian-archive-squeeze-stable.gpg OK
/etc/apt/trusted.gpg.d/debian-archive-squeeze-automatic.gpg OK
/etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg OK
/etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg OK
/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg OK
/etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg FAILED
root@localhost:/#

Those cosmic rays are amazing, keep corrupting the same files every time.

Zero_Chaos

Zero_Chaos

2015-05-30 19:15

reporter   ~0003351

a little copy pasta on this line:

bian-archive-keyringt-get -o options::dpkg::="--force-confask" --reinstall install de

it should read "apt-get -o options::dpkg::="--force-confask" --reinstall install debian-archive-keyring" as you suggested, you can see from the lines after that the line was correct.

rhertzog

rhertzog

2015-06-01 06:41

administrator   ~0003358

If you tried to document yourself on what I suggested to do, you would have noticed that I made a small mistake in the APT option, it should have been « apt-get -o dpkg::options::="--force-confask" --reinstall debian-archive-keyring ».

If dpkg isn't asking you if you want to update the broken files, then the syntax is not working... cf man dpkg and /usr/share/doc/apt/examples/apt.conf

Issue History

Date Modified Username Field Change
2015-05-29 15:24 Zero_Chaos New Issue
2015-05-29 15:25 Zero_Chaos Note Added: 0003342
2015-05-29 18:38 Zero_Chaos Note Added: 0003344
2015-05-30 18:50 rhertzog Note Added: 0003348
2015-05-30 18:51 rhertzog Status new => closed
2015-05-30 18:51 rhertzog Assigned To => rhertzog
2015-05-30 18:51 rhertzog Resolution open => fixed
2015-05-30 19:08 Zero_Chaos Note Added: 0003349
2015-05-30 19:08 Zero_Chaos Status closed => feedback
2015-05-30 19:08 Zero_Chaos Resolution fixed => reopened
2015-05-30 19:15 Zero_Chaos Note Added: 0003351
2015-05-30 19:15 Zero_Chaos Status feedback => assigned
2015-06-01 06:41 rhertzog Note Added: 0003358
2015-06-01 06:41 rhertzog Status assigned => closed
2015-06-01 06:41 rhertzog Resolution reopened => no change required