crashes if admin is not on the system and it can not be added
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Hardy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: update-manager
Update-manager adds the "admin" group if it is not on the system. If that fails, update-manager will crash:
TEST CASE:
1. use dapper (server so that the upgrade is quicker)
2. run "sudo do-release-upgrade -d"
3. wait for it to finish running and wait for cleanup, do *not* continue with the cleanup just yet
4.do "chattr +i /etc/group" to simulate unwritable group file
5. procceed with the cleanup and watch it fails
6. repeat steps 1-4 but run "sudo do-release-upgrade -d --proposed" this time
7. watch it work
2008-06-20 17:53:12,564 WARNING System has no admin group ('getgrnam(): name not found: admin')
2008-06-20 17:53:12,725 ERROR not handled expection:
Traceback (most recent call last):
File "./dist-
app.run()
File "/tmp/tmpuqMuL-
self.
File "/tmp/tmpuqMuL-
self.
File "/tmp/tmpuqMuL-
func()
File "/tmp/tmpuqMuL-
self.
File "/tmp/tmpuqMuL-
admin_group = grp.getgrnam(
KeyError: 'getgrnam(): name not found: admin'
This bug was fixed in the package update-manager - 1:0.91.5
---------------
update-manager (1:0.91.5) intrepid; urgency=low
* DistUpgrade/ DistUpgradeCont roller. py: ubuntu. com" as a valid mirror and ChangelogViewer .py: mirrors. cfg: DistUpgradeCont roller. py: UpdateManager. py, data/update- manager. schemas. in: manager/ autoclose_ install_ window DistUpgrade. cfg.dapper: ubuntu. com but on archive.ubuntu.com (LP: #241729)
- support "old-releases.
auto transition from that to the regular archive
(LP: #235527)
- add extra paraonoia when adding a missing admin group
(thanks to LaMont Jones) LP: #241723
* UpdateManager/
- support "exo-open" (xfce) too (LP: #240473)
* DistUpgrade/
- remove ftp.caliu.info (LP: #231966)
* DistUpgrade/
- fix typo and unfuzzy translations (LP: #220505)
* UpdateManager/
- provide a gconf key /apps/update-
to make it possible to prevent automatic closing of the installation
window (LP: #183209)
* DistUpgrade/
- remove ports.ubuntu.com from powerpc, it is not available on
ports.
-- Michael Vogt <email address hidden> Fri, 20 Jun 2008 20:02:50 +0200