edubuntu-installer and ubuntustudio-installer incorrectly report package as installed when using languages other than English

Bug #2014974 reported by Erich Eickmeyer
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
edubuntu-installer (Ubuntu)
Fix Released
High
Erich Eickmeyer
ubuntustudio-installer (Ubuntu)
Fix Released
High
Erich Eickmeyer

Bug Description

Both edubuntu-installer and ubuntustudio-installer are using the following code to determine if a package is installed:

apt-cache policy "${pkg}" | grep Installed | cut -d ':' -f 2 | cut -c 2-

This relies on the string "Installed" being returned by apt-cache which is translated depending on the system language. Since neither edubuntu-installer nor ubuntustudio-installer are localized as of now, another route for determining package installation needs to be used.

This will likely be doable by using the error code return from

dpkg -s "${pkg}" &> /dev/null

Additionally, some other idiosyncrasies were used when looking for Depends and Recommends. Now a different algorithm will be used without depending on specific words.

Changed in ubuntustudio-installer (Ubuntu):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Erich Eickmeyer (eeickmeyer)
Changed in ubuntustudio-installer (Ubuntu):
milestone: none → ubuntu-23.04
description: updated
Changed in edubuntu-installer (Ubuntu):
status: In Progress → Fix Committed
Changed in ubuntustudio-installer (Ubuntu):
status: In Progress → Fix Committed
summary: - edubuntu-installer and ubuntu-installer incorrectly report package as
- installed when using languages other than English
+ edubuntu-installer and ubuntustudio-installer incorrectly report package
+ as installed when using languages other than English
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package edubuntu-installer - 0.4

---------------
edubuntu-installer (0.4) lunar; urgency=medium

  * Stop using explicit strings to determine package status (LP: #2014974)

 -- Erich Eickmeyer <email address hidden> Sat, 01 Apr 2023 17:14:04 -0700

Changed in edubuntu-installer (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntustudio-installer - 1.5

---------------
ubuntustudio-installer (1.5) lunar; urgency=medium

  * Stop using explicit strings to determine package status (LP: #2014974)

 -- Erich Eickmeyer <email address hidden> Sat, 01 Apr 2023 17:12:17 -0700

Changed in ubuntustudio-installer (Ubuntu):
status: Fix Committed → Fix Released
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.