update-manager exits on dist-upgrade when tmp is mounted "noexec" and gives useless error message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
Fix Released
|
Medium
|
Michael Vogt | ||
Karmic |
Fix Released
|
Medium
|
Unassigned | ||
Lucid |
Fix Released
|
Medium
|
Michael Vogt |
Bug Description
Binary package hint: update-manager
Today I tried to upgrade my system from 9.04 to 9.10 RC via update-manager -d. When I clicked the button for the dist-upgrade, I got the release notes and then a dialog which sais it's downloading 2 files. After that, update-manager just crashed, without any notice.
TEST CASE:
Steps to reproduce:
run update-manager -d
click the "Upgrade" button in the top right.
click "Upgrade" in the dialog showing the release notes.
enter your password when asked for it.
What should happen:
the system is upgraded to the new distribution release, or a proper error message is shown.
What actually happens:
update-manager crashes.
When I run update-manager -d from the command line, this is the output:
$ update-manager -d
extracting 'karmic.tar.gz'
authenticate 'karmic.tar.gz' against 'karmic.tar.gz.gpg'
/var/lib/
super(Connection, self)._
sudo: unable to execute /tmp/tmpx8L0A4/
Since it said something about permissions, I also tried to run it as root directly from the command line instead of entering my password when update-manager asks for it. This is the output:
$ sudo update-manager -d
extracting 'karmic.tar.gz'
authenticate 'karmic.tar.gz' against 'karmic.tar.gz.gpg'
/var/lib/
super(Connection, self)._
/usr/lib/
self.
extracting 'karmic.tar.gz'
authenticate 'karmic.tar.gz' against 'karmic.tar.gz.gpg'
But now I also got an error message in the GUI:
Can not run the upgrade
This usually is caused by a system were /tmp is mounted noexec. Please remount without noexec and run the upgrade again.
This error message is right, I do have /tmp mounted with noexec. The problem is that it doesn't show up when I don't run update-manager as root, so many users will not know what's the problem when their upgrade fails.
ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
NonfreeKernelMo
Package: update-manager 1:0.111.9
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: update-manager
Uname: Linux 2.6.28-16-generic x86_64
Related branches
summary: |
- update-manager crashes on dist-upgrade + update-manager crashes on dist-upgrade when tmp is mounted "noexec" |
Changed in update-manager (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in update-manager (Ubuntu): | |
status: | Confirmed → In Progress |
summary: |
- update-manager crashes on dist-upgrade when tmp is mounted "noexec" + update-manager exits on dist-upgrade when tmp is mounted "noexec" and + gives useless error message |
description: | updated |
Changed in update-manager (Ubuntu Lucid): | |
status: | Fix Committed → Fix Released |
I note that this can easily be verified using kvm with /tmp mounted on a separate partition and marked noexec. (I've just done this.)