Upgrade fails silently with missing directory permissions

Bug #772939 reported by André Colomb on 2011-04-29
This bug affects 2 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)

Bug Description

Binary package hint: update-manager

When trying to upgrade to Natty (11.04), pressing the "Upgrade" button in the release notes dialog silently aborts the upgrade and returns to the update-manager main window. This is due to restrictive permissions (0700) on the APT archives directory (a remnant of using apt-offline, if I remember correctly).

On the console, the following error message can be seen:

acolomb@pythagoras:~$ update-manager
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/UpdateManager/UpdateManager.py", line 962, in on_button_dist_upgrade_clicked
  File "/usr/lib/python2.6/dist-packages/UpdateManager/Core/DistUpgradeFetcherCore.py", line 247, in run
    if not self.fetchDistUpgrader():
  File "/usr/lib/python2.6/dist-packages/UpdateManager/Core/DistUpgradeFetcherCore.py", line 217, in fetchDistUpgrader
    result = fetcher.run()
SystemError: E:Archives directory /var/cache/apt/archives/partial is missing. - Acquire (13: Permission denied)
acolomb@pythagoras:~$ ls -ld /var/cache/apt/archives/
drwx------ 3 root root 28672 2011-04-29 06:56 /var/cache/apt/archives/

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: update-manager 1:0.142.23
ProcVersionSignature: Ubuntu 2.6.35-28.50-generic
Uname: Linux 2.6.35-28-generic i686
Architecture: i386
CheckboxSubmission: 1a65cbdbf04708f38b0dc736c29ab99d
CheckboxSystem: b1cca5f799a911bbb44e7180c2fd235d
Date: Fri Apr 29 07:13:52 2011
PackageArchitecture: all
SourcePackage: update-manager

André Colomb (acolomb) wrote :
RedSingularity (redsingularity) wrote :

Try running this:

sudo mkdir -p /var/cache/apt/archives/partial

Then start the update-manager again and see if it works properly.

Changed in update-manager (Ubuntu):
status: New → Incomplete
André Colomb (acolomb) wrote :

Thank you and sorry I didn't reply right away. To quickly clear up the situation:

I did manage to install the upgrade, it was just a matter of setting the permissions right.
/var/cache/apt/archives/ as well as /var/cache/apt/archives/partial/ did exist but the former had permissions 0700.

It seems the check for the "partial" directory happens before root privileges are acquired. Update-manager should probably issue an error message though or try with setuid root instead of failing silently.

Launchpad Janitor (janitor) wrote :

[Expired for update-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in update-manager (Ubuntu):
status: Incomplete → Expired
André Colomb (acolomb) on 2011-07-07
Changed in update-manager (Ubuntu):
status: Expired → Incomplete
Robert Roth (evfool) on 2011-08-11
Changed in update-manager (Ubuntu):
status: Incomplete → Confirmed
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers