aptitude does not retain settings

Bug #252635 reported by Andrew on 2008-07-28
This bug affects 2 people
Affects Status Importance Assigned to Milestone
aptitude (Ubuntu)

Bug Description

Binary package hint: aptitude

1) Open aptitude using "sudo aptitude"
2) Options->Preferences
3) Change "--\ The display format for package views" to
"%c%a%M%S %p %Z %v %V %t %i
4) Hit enter
5) Hit "q" until aptitude closes
6) restart aptitude using sudo

the format was not saved.

Ubuntu Hardy
Aptitude version 0.4.9-2ubuntu5

Andrew (andrew-rw-robinson) wrote :

Note than manually changing "/root/.aptitude/config" and adding:
aptitude::UI::Package-Display-Format "%c%a%M%S %p %Z %v %V %t %i";

works. So it seems that aptitude and sudo are conflicting it terms of where to save and restore the settings.

description: updated
Gaetan Nadon (memsize) wrote :

I am able to reproduce the problem as described by Andrew.
Even more so, any user typed settings are not preserved. However the True/False (showing an X) type of settings are preserved.
Another way to test is to cat the ~/aptitude/config file after any change. when the settings are preserved, the file is updated right way, no need to quit and reload.
Note that the user typed settings appear to be preserved as they are kept in-memory while the program is running but are lost when the program quits.

Linux ubuntu 2.6.24-23-generic #1 SMP Mon Jan 26 01:04:16 UTC 2009 x86_64 GNU/Linux
Version: 0.4.9-2ubuntu5

Changed in aptitude:
status: New → Confirmed
Rolf Leggewie (r0lf) on 2009-02-25
Changed in aptitude:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers