On Sun, Jul 08, 2007 at 11:00:46AM -0700, Daniel Burrows wrote:
> On Fri, Jul 06, 2007 at 08:11:04PM +0200, "Artur R. Czechowski" <[EMAIL 
> PROTECTED]> was heard to say:
> > I noticed that all packages with newer version available have cleared
> > "automatically installed" flag. Even setting this flag manually, exiting
> > aptitude and running it again does not help.
>   Could you provide more information?
Sure. But I am not sure what exactly you need.
Version of aptitude and dependecies you have in initial submission.
System is current unstable amd64.

Configuration of apt:
szczaw:/etc/apt/apt.conf.d# ls
01autoremove  01local-apt-limit  20listchanges
01cron        11resolvingdeps    70debconf

szczaw:/etc/apt/apt.conf.d# grep . *
01autoremove:APT
01autoremove:{
01autoremove:  NeverAutoRemove  
01autoremove:  { 
01autoremove:   "^linux-image.*";  
01autoremove:   "^linux-restricted-modules.*";
01autoremove:  };
01autoremove:};
01cron:APT::Archives::MaxAge "30";
01cron:APT::Archives::MinAge "5";
01local-apt-limit://Acquire::http::Dl-Limit "45";
01local-apt-limit://Acquire::http::Dl-Limit "15";
11resolvingdeps:Aptitude::ProblemResolver::Discard-Null-Solution "false";
20listchanges:DPkg::Pre-Install-Pkgs { "/usr/bin/apt-listchanges --apt ||
test $? -ne 10"; };
20listchanges:DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
70debconf:// Pre-configure all packages with debconf before they are
installed.
70debconf:// If you don't like it, comment it out.
70debconf:DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt ||
true";};

Note: removing all files from apt.conf.d except 20listchanges and 70debconf
does not help with solving the problem.

My sources.list:
deb http://http.us.debian.org/debian unstable main contrib non-free
deb-src http://http.us.debian.org/debian unstable main contrib non-free

/etc/apt/sources.list.d/ is empty.

To replicate the bug I manually downgrade libxcursor1 from 1:1.1.8-2 to
1.1.7-4.

szczaw:/var/lib/apt# dpkg -l libxcursor1
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
|uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  libxcursor1    1.1.7-4        X cursor management library
szczaw:/var/lib/apt# grep -A 2 libxcursor1 extended_states 
Package: libxcursor1
Auto-Installed: 1

Then I run aptitude. The libxcursor1 is marked to upgrade from 1.1.7-4
to 1:1.1.8-2, but without A status in 3rd column. Additionaly:
szczaw:/var/lib/apt# grep -A 2 libxcursor1 extended_states 
Package: libxcursor1
Auto-Installed: 0

When I manually mark the package as an automatically installed and quit
aptitude, the extended_states is updated correctly:
szczaw:/var/lib/apt# grep -A 2 libxcursor1 extended_states 
Package: libxcursor1
Auto-Installed: 1

but after another run of aptitude there is again Auto-Installed: 0

Entry from /var/lib/aptitude/pkgstates:
Package: libxcursor1
Unseen: no
State: 1
Dselect-State: 1
Remove-Reason: 4
Upgrade: yes
does not change during the procedure, except the Upgrade: yes addition.

After setting 
Debug {
        pkgAutoRemove "true";
        pkgDepCache::AutoInstall "true";
}
and run:
aptitude
mark package as autoinstalled
quit
there are following lines about libxcursor1 in the output:
Update exisiting AutoInstall info: libxcursor1
AutoDep: libxcursor1
AutoDep: libxcursor1
Update exisiting AutoInstall info: libxcursor1
Skipping already written libxcursor1

BTW, after I mark the package as autoinstalled and continue with upgrade
(presing GG) package remains as autoinstalled. Until next upgrade of the
package...

I can trace the aptitude with gdb, but I'll be glad for any hints where
I should focus.

BTW, I've found #431737 in apt - maybe my problem is related to this bug.

Best regards
        Artur
-- 
Documentation is like sex: When it is good, it is very, very, good.
And when it is bad, it is better than nothing.
                                                  /Dick Brandon/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to