[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#727799: apt-get not marking manual correctly and apt-mark showmanual also wrong



Control: notfound -1 1.3~pre2

On 2016-07-20 10:09:52 +0200, David Kalnischkies wrote:
> On Tue, Jul 19, 2016 at 04:36:57PM +0200, Vincent Lefevre wrote:
> > while I have:
> > 
> > Package: libutf8proc1
> > Architecture: amd64
> > Auto-Installed: 0
> > 
> > However, this package was installed automatically. From the apt
> > history:
> > 
> > Start-Date: 2016-07-13  21:37:27
> > Commandline: apt install julia julia-doc
> > Install: julia:amd64 (0.4.6-1), libopenlibm2:amd64 (0.5.1+dfsg-1, automatic), libutf8proc1:amd64 (1.3.1-2, automatic), libjs-mathjax:amd64 (2.6.1-1, automatic), julia-doc:amd64 (0.4.6-1), libspqr2:amd64 (1:4.5.3-1, automatic), libdsfmt-19937-1:amd64 (2.2.3+dfsg-2, automatic), fonts-mathjax:amd64 (2.6.1-1, automatic), libjs-underscore:amd64 (1.7.0~dfsg-1, automatic), sphinx-rtd-theme-common:amd64 (0.1.9-1, automatic), libpcre2-8-0:amd64 (10.21-1, automatic), libopenblas-base:amd64 (0.2.18-1, automatic), libunwind8:amd64 (1.1-4.1, automatic), julia-common:amd64 (0.4.6-1, automatic), libarpack2:amd64 (3.4.0-1, automatic), libopenspecfun1:amd64 (0.5.2-1, automatic), libjs-modernizr:amd64 (2.6.2+ds1-1, automatic), libjs-sphinxdoc:amd64 (1.4.4-3, automatic)
> > End-Date: 2016-07-13  21:37:40
> > 
> > So, the bug is still there in apt 1.3~pre2 (I had upgraded to this
> > version a few days before).
> 
> $ ssh barriere.debian.org  # debian amd64 porterbox
> (porter)$ mysid=sid$RANDOM
> (porter)$ schroot -b -c stretch -n $mysid
> # 'apt' isn't allowed ATM in porterboxes, but it makes no difference here anyhow
> (porter)$ dd-schroot-cmd -c $mysid apt-get update
> (porter)$ dd-schroot-cmd -c $mysid apt-get upgrade
> (porter)$ dd-schroot-cmd -c $mysid apt-get install julia julia-doc
> (porter)$ schroot -r -c $mysid
> (chroot)$ grep -o 'libutf8[^ ]* ([^)]*)' /var/log/apt/history.log
> libutf8proc1:amd64 (1.3.1-2, automatic)
> (chroot)$ apt-mark showmanual libutf8proc1:amd64
> (chroot)$ apt-mark showauto libutf8proc1:amd64
> libutf8proc1
> 
> So, in the six days since you installed libutf8proc1 something happened
> which marked it as manually installed, which usually is the case if you
> (or something else on your "behalf" even without your explicit
> knowledge) runs 'apt install libutf8proc1' – even if that ends up doing
> "nothing".

Note that all the libraries installed above also have
"Auto-Installed: 0".

After purging the packages and redoing "apt install julia julia-doc",
I had "Auto-Installed: 1" as wanted. But just after running aptitude
(nothing else), I got "Auto-Installed: 0". I could reproduce this on
another machine. So, that's a bug in aptitude. I'm going to report a
new bug.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


Reply to: