[Bug 1315670] Re: driver manager does not handle qapt transaction prompts
Harald Sitter
sitter.harald at gmail.com
Mon May 12 11:47:42 UTC 2014
utopic fix commited in git repo
** Description changed:
+ [Impact]
+ Driver manager did not have GUI handling for corner case dpkg/apt issues blocking installation progress (such as choosing what to do with a changed config file). The necessary GUI logic was imported from muon/libmuon and wried up accordingly. Additionally to reduce the likelyhood of ending up with untranslated strings the manager will try to load libmuon's translations (this relationship is not reflected in the packaging as the availability of these strings is incredibly limited because the prompts in question are very hard to trigger for most people).
+
+ [Test Case]
+ - download a suitable driver deb file
+ e.g. nvidia-331-updates_331.38-0ubuntu7_amd64.deb
+ - create a directory and place the file inside
+ - in the directory do:
+ dpkg-deb -x *deb data/
+ dpkg-deb -e *deb data/DEBIAN
+ - in data/DEBIAN/conffiles is a list of suitable files
+ - choose any file listed, find it in data/ and edit it
+ - add an additional newline or change a string etc.
+ i.e. the md5sum of the file needs to change, any change in the file
+ will cause that
+ - edit data/DEBIAN/control
+ - change the Version field by appending '~bug1315670' (do note the ~)
+ - go into the parent directory and run
+ dpkg-deb -b data bug1315670.deb
+ - there's now a modified deb file in the parent dir, install it:
+ sudo dpkg -i bug1315670.deb
+ - your driver package should now be installed/downgraded to the modified version
+ - now remove the previously modified conffile
+ sudo rm /random/example/path
+ - make sure it is gone with:
+ file /random/example/path
+ - make sure the package is listed in muon-updater or another package manager as upgradable, but DO NOT upgrade it yet
+ - remove the package (DO NOT purge it!)
+ sudo apt-get remove $packagename
+ - run driver manager
+ - it should not have the driver/package in question marked as active
+ - switch to the driver/package and click apply
+ - wait
+ - during the installation process a conflict dialog should up
+ - make sure the cache is not broken
+ sudo apt-get check
+ sudo apt-get dist-upgrade
+
+ [Regression Potential]
+ none
+
+ [Other Info]
+ n/a
+
+ ---
+
Just upgraded to Kubuntu 14.04. KDE Driver manager suggested to install
proprietary drivers for Nvidia video card. I selected the recommended
driver (331.38) and accepted. The driver manager started the
installation process but hung on 81%, all I could do is to close it.
After that dpkg database was left locked and inconsistent.
The process actually was waiting for a user's input. I figured that out
when I later executed "sudo dpkg --configure -a". The driver installer
showed the following prompt:
Configuration file '/etc/init/nvidia-persistenced.conf'
- ==> Deleted (by you or by a script) since installation.
- ==> Package distributor has shipped an updated version.
- What would you like to do about it ? Your options are:
- Y or I : install the package maintainer's version
- N or O : keep your currently-installed version
- D : show the differences between the versions
- Z : start a shell to examine the situation
- The default action is to keep your current version.
+ ==> Deleted (by you or by a script) since installation.
+ ==> Package distributor has shipped an updated version.
+ What would you like to do about it ? Your options are:
+ Y or I : install the package maintainer's version
+ N or O : keep your currently-installed version
+ D : show the differences between the versions
+ Z : start a shell to examine the situation
+ The default action is to keep your current version.
*** nvidia-persistenced.conf (Y/I/N/O/D/Z) [default=N] ? y
I don't remember removing that file, but in any case the driver manager
must handle such user input requests properly and not hang.
PS: Moved from https://bugs.kde.org/show_bug.cgi?id=334232.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: kubuntu-driver-manager 14.04ubuntu9
ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
CurrentDesktop: KDE
Date: Sat May 3 17:10:02 2014
InstallationDate: Installed on 2013-10-11 (203 days ago)
InstallationMedia: Kubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
SourcePackage: kubuntu-driver-manager
UpgradeStatus: Upgraded to trusty on 2014-05-02 (0 days ago)
** Changed in: kubuntu-driver-manager (Ubuntu Utopic)
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kubuntu-driver-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1315670
Title:
driver manager does not handle qapt transaction prompts
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kubuntu-driver-manager/+bug/1315670/+subscriptions
More information about the kubuntu-bugs
mailing list