synaptic won't remember certain preferences
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| One Hundred Papercuts |
Undecided
|
Unassigned | ||
| synaptic |
Confirmed
|
Undecided
|
Unassigned | |
| synaptic (Debian) |
Fix Released
|
Unknown
|
||
| synaptic (Ubuntu) |
Low
|
Unassigned | ||
Bug Description
If you set Synaptic to "Consider recommended packages as dependencies" and close Synaptic, the option will be unselected next time you launch the program
Related branches
- synaptic-developers: Pending requested 2010-04-12
-
Diff: 73 lines (+45/-1)2 files modifiedcommon/rconfiguration.cc (+39/-0)
debian/changelog (+6/-1)
Linoleum (114thw) wrote : | #1 |
Tomas Ingo (tomas-ingo) wrote : | #2 |
This has not yet been fixed in Hardy
Guo Xi (guoxi349) wrote : | #3 |
have the same problem in intrepid beta
Ameen Demidem (ameen.demidem) wrote : | #4 |
Actually, enabling the option does work, in fact, for the current session but will be reset for the next one.
Here is how to bypass this bug meanwhile a fix is released.
as root, add the following line to /etc/apt/apt.conf:
APT::Install-
if /etc/apt/apt.conf does not exist (which is probably the case) create it.
Notice that you can't remove the option from Synaptic. You have to remove it by deleting that line from apt.conf
Cheers.
Ameen Demidem (ameen.demidem) wrote : | #5 |
Here is a patch to fix the problem.
It will make Synaptic remember the user preference through different sessions.
It will not affect apt-get though !
if you use apt-get you still have to add : -o APT::Install-
Changed in synaptic: | |
status: | New → Confirmed |
Changed in synaptic: | |
status: | Unknown → New |
Stefan Bedacht (sfab84) wrote : | #6 |
The bug still exists in synaptic 0.62.1ubuntu10 which is shipped with Intrepid Ibex (8.10).
I have the same problem with Intrepid
Thierry B. (thierrybo2) wrote : | #8 |
Same problem with Intrepid, but the reverse one. Option is checked by default, and I can't uncheck it. By the way, "apt-get" default to consider recommended packages as dependencies too.
Jan Claeys (janc) wrote : | #9 |
I didn't try this in intrepid, but I have the same issue as Thierry in jaunty.
Jan Claeys (janc) wrote : | #10 |
After disabling this manually in /etc/apt/apt.conf, it's disabled in synaptic too.
But after that, enabling it in synaptic doesn't persist...
There is a real need for a central, recognized place to store "apt" preferences that work consistently for all apt-based tools.
I'm now on Ubuntu 9.04 Beta, this bug wasn't fixed !
The Synaptic release is 0.62.5
goto (gotolaunchpad) wrote : | #12 |
I made the change to /etc/apt/apt.conf. aptitude skips recommended packages now, but synaptic still enables the option every time.
This Bug is STILL existing in Karmic! Could anyone take a look at this? It's really a bit nasty that this Bug obviousliy exists since Hardy. Is it that hard to fix it?
jfcgauss (jfcgauss) wrote : | #14 |
on ubuntu 9.04 amd64 desktop, i also have it: Option is checked by default, and I can't uncheck it. when i restart syanptic it comes back..
I'm now on Ubuntu 9.10 Beta, and this bug wasn't fixed !
The Synaptic release is 0.62.5
Today is the 15 October 2009, and this bug was reported in 2007 !!!
What is the problem ?
reza davoudi (rd1381) wrote : | #16 |
bug still going strong
personally i think synaptic i too stupid for its own good.but its good for new users,and i haven't found a good gui replacement ,I heard about aptitude and tried it but it's still CLI( though in debian it has aptitude-gtk with it (come on ubuntu!) .
i come from opensuse and its yast package manager is superior to synaptic in every way imaginable ,it just didn't have one option i wanted :)
Gene Caldwell (gene-caldwell) wrote : | #17 |
I don't report bugs anymore because they don't get fixed. I reported this bug as well as many others, I got the same result on the other bugs reported as this one, nothing. There are bugs I reported 4 years ago that STILL are not fixed. no excuse.
Oliver Joos (oliver-joos) wrote : | #18 |
My experience is different. I see many competent and friendly discussions on Launchpad, and often they soon came to a nice result - especially in smaller sub-projects.
This bug seems small, but it may spread over multiple core components like synaptics and apt. Perhaps that's why nobody risks to mess with it?
I hope that its age, number of duplicates and upstream report are enough to make it a "One Hundred Paper Cut". So it may be fixed for Lucid (LTS). IMHO it meets the definition on https:/
Vish (vish) wrote : | #19 |
Thank you for bringing this bug to our attention. However, a paper cut should be a small usability issue, in the default Ubuntu install, that affects many people and is quick and easy to fix. So this bug can't be addressed as part of this project.
- These option in synaptic are advanced options . And We do not expect an average user to be using these options or even understand their purpose..
For further information about papercuts criteria, please read https:/
Don't worry though, this bug has been marked as "Invalid" only in the papercuts project.
Changed in hundredpapercuts: | |
status: | New → Invalid |
Gene Caldwell (gene-caldwell) wrote : | #20 |
Weather its a paper cut issue or a functionality failure, why are reported bugs left open and not addressed for years at a time ? Maybe someone should think about an Ubuntu release that focuses on catching up on all the outstanding bugs reported over the last 4 or 5 years ? I know for a fact that some of them I reported are STILL there and leaves the impression that I'm wasting time testing and reporting if only the important bugs have time to get fixed. Ever hear of spit and polish ? tighten up the ship ? crossing the T's and dotting the I's ? Some bugs get fixed only to return in the next release even, thats frustrating to AVERAGE users who don't know advanced CLI work arounds.
Gene Caldwell (gene-caldwell) wrote : | #21 |
oh, and how do I know they don't get fixed ? because I'm receiving emails on launchpad bugs I opened several years ago where people are reporting them still to this day.
Oliver Joos (oliver-joos) wrote : | #22 |
@Vish: Please reconsider it as a papercut - whether for Lucid or later. I agree that a lot of desktop novices can live with it. But think of users with Netbooks, small SSDs or GSM modems. Installing "eclipse" with or without recommended dependencies makes a difference of about 100MB! Further this bug affects one of the big plus of Linux: the package management. And I think apart from calling this feature "advanced" the other criteria of a papercut are full-filled.
Meanwhile I use the workaround of Muhammad (comment #3). Just remember that since Jaunty the default is "1" so you might want to create /etc/apt/apt.conf with the line:
APT::Install-
Vish (vish) wrote : | #23 |
Bug confirmed with synaptic:
Installed: 0.63.1ubuntu1
Candidate: 0.63.1ubuntu1
Version table:
*** 0.63.1ubuntu1 0
600 http://
Changed in synaptic (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Confirmed |
Vish (vish) wrote : | #24 |
@Oliver Joos , Papercuts doesnt have a dedicated team of devs to fix bugs. It identifies simple/easy common usability bugs for the community to work on.
On the other hand , synaptic was supposed to be fully replaced by the software-store with all the synaptic features in Lucid itself. But that has been delayed. And synaptic will be installed in Lucid too.
I'd suggest you file a bug in software-store for this feature to be implemented in S-S for Lucid+1 where hopefully software store will replace synaptic with all these advanced features.
Jan Claeys (janc) wrote : | #25 |
@Vish: I agree with Oliver that this is not a papercut (that project is for fixing bugs that affect almost everybody using a defa)
Jan Claeys (janc) wrote : | #26 |
*grrr* let's try again ;)
@Vish: I agree with Oliver that this is not a papercut (that project is for fixing bugs that affect almost everybody using a default install).
But at the same time, it's an important issue. Did anybody look into the source code why & where this bug happens?
Jan Claeys (janc) wrote : | #27 |
eh, @Joos I agree with Vish I mean... (*sigh*, I need some sleep)
Oliver Joos (oliver-joos) wrote : | #28 |
Ok, I look forward to the software-store and will have a look at its feature list. But until then I need synaptic to roam through the trees of dependencies. So I took the challenge and made a patch for this over-aged bug.
The problem I found: synaptic once changed its config location to /root/.
Since about Ubuntu 8.10 it was decided that the built-in default "false" is not optimal. Therefore the file /etc/apt/
APT::Install-
With that in mind I tried to make my patch as minimal-invasive and robust as possible: whenever synaptic stores its config, a file /etc/apt/
I tested this patch against synaptic-
A note for testers:
You can dare to "./configure ; make ; sudo make install". This will only write to /usr/local/ and a "sudo make uninstall" is also available.
tags: | added: patch |
Oliver Joos (oliver-joos) wrote : | #29 |
Sorry, I am new to Debian patching and the attachment of the last comment contains the same diffs twice.
Here is the corrected patch including diffs of changelog, this time against the latest bzr update (0.63.1ubuntu2).
Many, many thanks for taking the time for this!
Oliver Joos (oliver-joos) wrote : | #31 |
Please help committing this fix before Lucid is released.
Changed in synaptic (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in synaptic (Ubuntu): | |
assignee: | nobody → Dmitrijs Ledkovs (dmitrij.ledkov) |
Changed in synaptic (Ubuntu): | |
assignee: | Dmitrijs Ledkovs (dmitrij.ledkov) → nobody |
Dimitri John Ledkov (xnox) wrote : | #32 |
I'm part of ~ubuntu-reviewers team helping out to process bugs with patches.
1) Synaptic upstream is managed in $ bzr branch lp:synaptic
I've branched the latest revision, imported your patch and committed it. You can branch lp:~dmitrij.ledkov/synaptic/lp154349 to continue working on your patch.
2) The problem still exists. Confirming.
3) Patch applies (mostly had to fix up changelog cause it has new entries)
4) It builds (both using debuild and plain make) (note some of the debian/
5) The problem still exists.
With and without your patch Synaptic crashes when I try to deselect the option to treat recommends as dependencies. (I'm running Lucid with latest updates). Although at slightly different time intervals without patch it crashes after i deselect the tick box, with patch it crashes when I click apply/ok.
I have subscribed to this bug and I will keep an eye on all future updates.
Thanks for your work. And I hope you will manage to make it work =)
With regards,
Dima.
tags: |
added: patch-needswork removed: patch |
Oliver Joos (oliver-joos) wrote : | #33 |
Thanks for your time to help fixing this!
You wrote: "With and without your patch Synaptic crashes". In all comments to this bug since 2 years nobody ever wrote about crashes. So I guess you found a new bug. Please open a new bug report to enter your findings about the crashes. (Some suspects for crashes like this: compiz, kernel mode setting or new desktop themes. Although on my ATI-based HP laptop this all works stable in Lucid beta 1 :-)
I checked out you bzr branch, built and tested it and it works as expected. I used a Live-CD of Lucid beta 1, installed all build-deps and gnome-common.
Please test my patch again when your Synaptic does not crash anymore without it.
tags: |
added: patch removed: patch-needswork |
Jean-Baptiste Lallement (jibel) wrote : | #34 |
@Dmitrijs: did you test it as root or a normal user ?
A normal user won't be allowed to write to /etc/apt/apt.conf.d and a message is printed to stderr. However it's working correctly as root but still disappointing for a normal user since the setting is lost upon restart.
An improved version would be to load/save from the system's setting if run as superuser and from user's preferences if run as a normal user.
As a side note, Dmitrijs, could you please file a new report for the crash with a backtrace if apport doesn't trigger please. Thanks in advance.
Simon Ruggier (simon80) wrote : Re: [Bug 154349] Re: synaptic won't remember certain preferences | #35 |
On Tue, Mar 23, 2010 at 1:45 PM, Jean-Baptiste Lallement
<email address hidden> wrote:
> @Dmitrijs: did you test it as root or a normal user ?
> A normal user won't be allowed to write to /etc/apt/apt.conf.d and a message is printed to stderr. However it's working correctly as root but still disappointing for a normal user since the setting is lost upon restart.
>
> An improved version would be to load/save from the system's setting if
> run as superuser and from user's preferences if run as a normal user.
Is it still worth it to implement this, given that unprivileged users
cannot install packages?
Oliver Joos (oliver-joos) wrote : | #36 |
I always run synaptic as root. But if run as normal user there is a difference if Install-Recommends is true or false. So I agree with Jean-Baptiste and enhanced my patch the way he proposed. I carefully tested every situation that came into my mind (3 files involved, each can be true, false or non existent). Please test the patch with your common use-cases and comment here if you get surprised.
@reviewers/
Oliver, I've tested your patch. What should I say? Works fine. Only the Menu-entry doesn't works because of :
Childprocess »su-to-root« couldn't been started (No such file or directory)
Running "sudo synaptic" from a Terminal works fine. But maybe I've made something wrong when compiling.
I did:
bzr branch lp:ubuntu/synaptic
cd synaptic/
patch -p0 < synaptic-
./configure --prefix=/usr
make
sudo make install
Ok, found something thats not right: the compiled Version don't has an Option for pinning packages. Has this something to do with the patch? Maybe someone could compile and test this too. One Person for testing may be not that helpful...
Oliver Joos (oliver-joos) wrote : | #39 |
Thank you for helping to fix this bug! Your procedure to compile is 100% correct.
The missing option is simply disabled in the latest bzr version - see debian/changelog:
* disable 'Lock Version' and 'Automatically installed' menu entries for a
normal user (LP: #309906)
I could reproduce the issue with the menu-entry and su-to-root. The Ubuntu package seems to patch these menu entries to change "su-to-root " to "gksu" (see debian/
In short: missing option and failing menu entry is not caused by my patch.
Could you test my patch again in a terminal with "gksudo synaptic" (for root) and with "synaptic" (for users)?
Works as it should. No Problems here.
Launchpad Janitor (janitor) wrote : | #41 |
This bug was fixed in the package synaptic - 0.63.1ubuntu4
---------------
synaptic (0.63.1ubuntu4) lucid; urgency=low
[ Michael Vogt ]
* po/it.po:
- updated, thanks to Milo Casagrande (closes: #575685)
[ Jean-Baptiste Lallement ]
* common/
- Use simplified URI for third party changelogs (LP: #45129)
* debian/
- update patch to support third party changelogs
* common/
- Support third party changelogs by using ArchiveURI() (LP: #153966)
- Display LP links when changelog is not available for download
(LP: #452564)
* gtk/rgmainwindo
- check package flags when applying an action to a package list
(LP: #513460)
* common/
- workaround to allow searching for terms with an hyphen (LP: #282995)
* common/
- xapianSearch: do not expand the first term when replacing the hyphen
to reduce size of the resultse
[ Oliver Joos ]
* common/
- Fix to store setting "Consider recommended packages as dependencies"
(closes debian #440027 and LP: #154349)
-- Michael Vogt <email address hidden> Thu, 15 Apr 2010 01:59:51 +0200
Changed in synaptic (Ubuntu): | |
status: | In Progress → Fix Released |
tags: | added: patch-forwarded-upstream |
Changed in synaptic (Debian): | |
status: | New → Fix Released |
it seems that from the previous /root/. synaptic. conf from feisty, the line synaptic. conf doesn't resolve the problem
UseRecommends "true";
has diapered.
Still, adding this line to /root/.