purging a package for different architecture may delete files needed for the actual architecture
Bug #884979 reported by
Párkányi, Balázs
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glib2.0 (Ubuntu) |
New
|
Undecided
|
Steve Langasek |
Bug Description
After installing adobe-flashplugin on my 64-bit system (11.10) I removed all the packages for i386 architecture. Then I purged them. After restarting the machine, the default Ubuntu session stopped working. I found that when I purged package libglib2.0-0:i386, dpkg deleted the file /usr/share/
I do not know, if it is a serious problem, but dpkg should handle these cases, when there are packages installed for different architectures. May hard linking the same files prevent unwanted deletion?
Changed in glib2.0 (Ubuntu): | |
assignee: | nobody → Steve Langasek (vorlon) |
To post a comment you must log in.
This is a bug of libglib2.0-0 because its postrm purge removes it unconditionnaly even if the package is still installed on another architecture.
Cf the extract below of /var/lib/ dpkg/info/ libglib2. 0-0:i386. postrm glib-2. 0/schemas ]; then glib-2. 0/schemas/ gschemas. compiled fail-on- non-empty /usr/share/ glib-2. 0/schemas
if [ "$1" = purge ] && [ -d /usr/share/
# Purge the compiled schemas
rm -f /usr/share/
rmdir -p --ignore-
fi