update-notifier doesn't handle secured .list files gracefully
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-notifier (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Binary package hint: update-notifier
Description: Ubuntu 8.04.1
Release: 8.04
update-notifier:
Installed: 0.70.9
Candidate: 0.70.9
Version table:
*** 0.70.9 0
500 http://
100 /var/lib/
0.70.7 0
500 http://
ubunet development has moved to a different configuration for a private PPA. As part of this, repository info is now in
/etc/apt/
Since username and password are kept in ubunet.list, it is set to chmod 600.
Unfortunately this appears to cause problems for update-notifier, as it shows orange "updates available"
Clicking on the icon to retrieve updated results in
---
Could not initialize the package information
A unresolvable problem occurred while initializing the package information.
Please report this bug against the 'update-manager' package and include the following error message:
'E:Opening /etc/apt/
----
acknowledging this dialog closes update manager.
This sequence of events is probably happening because update-notifier is trying to read the file prior to prompting for su creds. It should handle this with a credentials prompt, or some other manner that doesn't result in unceremonious exit.
sudo apt-get (etc) does get the updates, but update-notifier is still showing "updates ready" Mousing over it in this state gives a tooltip of
---
An error occured, please run Package Manager from the right-click menu or apt-get in a terminal to see what is wrong. The error mesage was: ' Error: Opening the cache (E:Opening /etc/apt/
---
Neither suggestion in the tooltip clears the status.
Thanks for your bugreport.
You are correct about the cause for this problem. As a workaround you could set sources. list.d/ ubunet. list
/etc/apt/
to root.admin and mode 640.