Installing multiarch debs can uninstall native arch packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-center (Ubuntu) |
Confirmed
|
High
|
Unassigned |
Bug Description
1. Download the .deb which I've attached (it was built from equivs and is harmless but I'll also attach the equivs script if you want to reproduce it) on an amd64 system with i386 multiarch enabled. It's an i386 deb which depends on unity. Importantly Unity is uninstallable with multiarch.
2. Open it in software-center by software-center fakepkg_
3. Click "Install".
4. Observe that s-c tries to install the .deb and removes a load of packages in the process, e.g. by comparing ubuntu-desktop versions before and after.
It is possible to know that this package isn't installable; apt-get --dry run can do this, for example:
laney@raring-
NOTE: This is only a simulation!
apt-get needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies.
fakepkg:i386 : Depends: unity:i386 but it is not going to be installed
libgudev-
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
I don't think it's enough just to know if it can be installed, though - you have to make sure that no native arch packages are removed too, I think.
Changed in software-center (Ubuntu): | |
importance: | Undecided → High |
status: | New → Confirmed |
Part of the issue here is that apt-get -y will have the same effect if the package were in the archive. So I'm not so sure this is something that USC should be fixing but rather one that apt itself should be fixing. If it is fixed in apt, then USC then follows the erroring system, USC can then popup a dialog that reads along the lines of "This package will not be installed as it removes key system files"