apt-cdrom architecture match always fails

Bug #612665 reported by Colin Watson
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Fix Released
High
Unassigned
Maverick
Fix Released
High
Unassigned

Bug Description

Binary package hint: apt

apt-cdrom is always failing in the installer right now, with apt 0.7.26~exp12ubuntu2. You can reproduce this by loop-mounting a current server image on /mnt and running:

  sudo apt-cdrom -d /mnt -m -n -o Debug::aptcdrom=true -o Acquire::cdrom::AutoDetect=false add

(Beware, this will replace /dev/null with a regular file and you'll have to put it back afterwards! But that's another bug ...)

It looks to me as though pkgCdrom::DropBinaryArch() is dropping one too many characters from the end of the architecture name before checking it against the current architecture. I'll attach a patch to fix this.

Tags: patch
Revision history for this message
Colin Watson (cjwatson) wrote :
Changed in apt (Ubuntu):
importance: Undecided → High
Colin Watson (cjwatson)
Changed in apt (Ubuntu Maverick):
milestone: none → maverick-alpha-3
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks a lot Colin for the fix!

apt (0.7.26~exp12ubuntu3) maverick; urgency=low

  [ Colin Watson ]
  * apt-pkg/cdrom.cc:
    - fix off-by-one error in DropBinaryArch

Changed in apt (Ubuntu Maverick):
status: New → Fix Released
tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.