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

Bug#807012: python3-apt & unattended-upgrades get confused by uppercase pkg



Control: reassign -1 apt

On Fri, Dec 11, 2015 at 02:01:44PM +0100, Julian Andres Klode wrote:
> Control: reassign -1 python-apt
> 
> On Fri, Dec 11, 2015 at 01:49:06PM +0100, Alexandre Detiste wrote:
> > Le vendredi 11 décembre 2015, 13:37:32 Julian Andres Klode a écrit :
> > > > Reading en.diff_Index translations from /var/lib/apt/lists/ftp.be.debian.org_debian_dists_unstable_main_i18n_Translation-en.diff_Index: done.  
> > > > Rebuilding Xapian index... 0%
> > > > Traceback (most recent call last):
> > > >   File "/usr/sbin/update-apt-xapian-index", line 104, in <module>
> > > >     indexer.rebuild(opts.pkgfile)
> > > >   File "/usr/lib/python2.7/dist-packages/axi/indexer.py", line 717, in rebuild
> > > >     self.buildIndex(dbdir, generator)
> > > >   File "/usr/lib/python2.7/dist-packages/axi/indexer.py", line 692, in buildIndex
> > > >     for doc in documents:
> > > >   File "/usr/lib/python2.7/dist-packages/axi/indexer.py", line 563, in gen_documents_apt
> > > >     for idx, pkg in enumerate(cache):
> > > >   File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 231, in __iter__
> > > >     yield self[pkgname]
> > > >   File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 200, in __getitem__
> > > >     raise KeyError('The cache has no package named %r' % key)
> > > > KeyError: "The cache has no package named 'WorldOfGoo'"
> > > > 
> > > > 
> > > 
> > > I'm running since multiple weeks with a dummy package 
> > > installed and cannot produce any error.
> > 
> > I found just now that to reproduce this bug the package
> > must be installed & available in a repository.
> 
> That helped me reproduce the issue. It is indeed a bug in
> python-apt.
> 

It turns out to be a bug in APT itself. dpkg converts the
package name to lower case after reading it, APT does not
do the same.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to (`inline'). Thank you.


Reply to: