[PHREAKSCRIPT-77] install: install_prereq aborts early
On some systems, such as those installed via CD, install_prereq aborts early since it uses set -e and aptitude update fails:
# aptitude update
Ign cdrom://[Debian GNU/Linux 13.2.0 _Trixie_ - Official amd64 DVD Binary-1 with firmware 20251115-11:05] trixie InRelease
Err cdrom://[Debian GNU/Linux 13.2.0 _Trixie_ - Official amd64 DVD Binary-1 with firmware 20251115-11:05] trixie Release
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Hit http://security.debian.org/debian-security trixie-security InRelease
Hit http://deb.debian.org/debian trixie InRelease
Get: 1 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
Fetched 47.3 kB in 0s (180 kB/s)
E: The repository 'cdrom://[Debian GNU/Linux 13.2.0 _Trixie_ - Official amd64 DVD Binary-1 with firmware 20251115-11:05] trixie Release' does not have a Release file.
E: Failed to download some files
W: Failed to fetch cdrom://[Debian GNU/Linux 13.2.0 _Trixie_ - Official amd64 DVD Binary-1 with firmware 20251115-11:05]/dists/trixie/Release: Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
E: Some index files failed to download. They have been ignored, or old ones used instead.
This leads to some prereqs not being installed, eventually causing configure to fail.
Rather than getting to that point, we need to abort immediately if updates fail to install, so the user can address that issue.
Comments
You must be logged in to leave a comment.