|
|
Log in / Subscribe / Register

Validity checking - should be mandatory?

Validity checking - should be mandatory?

Posted Sep 15, 2008 13:00 UTC (Mon) by kripkenstein (guest, #43281)
Parent article: Adding a signing key to RPM

It seems to me that proper validity checking should be mandatory in installing packages on any system. In my experience how this is handled on Ubuntu (and I guess Debian) leaves something to be desired, or perhaps I don't understand the rationale.

The reason I became aware of this is I was running a machine with some sort of hardware problem, that caused large downloaded files to be corrupt sometimes (rarely, but enough to be a problem). What then happens with large updates in 'apt-get update' is packages are installed until the corrupt package causes dpkg to fail, halting the process with some error about decompression of the file failing. But previous packages were already installed, sometimes leaving the system in an unusable state.

It seems to me that the simplest approach would be to download all files, then verify them (md5, key signing, etc.), and if even one fails then abort the process with an appropriate error message. A more complicated approach would install some packages even if others are corrupt, but only if there is no dependency. However, as I said before, perhaps I don't understand the rationale for the current method?


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds