Bug#807012: python3-apt & unattended-upgrades get confused by uppercase pkg
Package: python3-apt
Version: 1.1.0~beta1
Severity: normal
Hi,
Since the last update of python3-apt to 1.1, unattended-upgrades
is crashing on a package with an uppercase case name.
I do know this package is not policy-compliant;
but still UU / python3-apt should handle this situation
in a more gracefull way than a triple exception.
(and more enterprise-ish stuff may want to use
uppercase package names too)
The .deb is located in a private reprepro repository to enable
fast re-install on my "new win XP laptop of the year".
I'm assigning this first to python3-apt, as
this is where most changes recently happened.
Greets,
Alexandre
lintian /var/www/html/repos/pool/main/W/WorldOfGoo/WorldOfGoo_1.41_all.deb | wc
-l
2568
...
E: WorldOfGoo: bad-package-name
E: WorldOfGoo: package-not-lowercase
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apt/cache.py", line 194, in __getitem__
return self._weakref[key]
File "/usr/lib/python3.4/weakref.py", line 131, in __getitem__
o = self.data[key]()
KeyError: 'WorldOfGoo'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apt/cache.py", line 198, in __getitem__
rawpkg = self._cache[key]
KeyError: 'WorldOfGoo'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/unattended-upgrade", line 1437, in <module>
main(options)
File "/usr/bin/unattended-upgrade", line 1182, in main
allowed_origins=allowed_origins)
File "/usr/bin/unattended-upgrade", line 104, in __init__
self.adjust_candidate_versions()
File "/usr/bin/unattended-upgrade", line 119, in adjust_candidate_versions
for pkg in self:
File "/usr/lib/python3/dist-packages/apt/cache.py", line 231, in __iter__
yield self[pkgname]
File "/usr/lib/python3/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'"
dpkg -I /var/www/html/repos/pool/main/W/WorldOfGoo/WorldOfGoo_1.41_all.deb
Package: WorldOfGoo
Architecture: all
Version: 1.41
Maintainer: Maks Verver <maksverver@geocities.com>
Section: games
Priority: extra
Homepage: http://www.worldofgoo.com/
Depends: libc6, libstdc++6, libgl1, libglu1, libx11-6
Installed-Size: 82132
Description: A physics based puzzle/construction game
The millions of Goo Balls who live in the beautiful World of Goo don't know
that they are in a game, or that they are extremely delicious.
apt-cache policy worldofgoo
worldofgoo:
Installé : 1.41
Candidat : 1.41
Table de version :
*** 1.41 100
100 /var/lib/dpkg/status
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing'), (450, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.2.0-1-amd64 (SMP w/6 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages python3-apt depends on:
ii libapt-inst2.0 1.1.3
ii libapt-pkg5.0 1.1.3
ii libc6 2.19-22
ii libgcc1 1:5.2.1-23
ii libstdc++6 5.2.1-23
ii python-apt-common 1.1.0~beta1
ii python3 3.4.3-7
Versions of packages python3-apt recommends:
ii iso-codes 3.63-1
ii lsb-release 9.20150917
Versions of packages python3-apt suggests:
pn python-apt-doc <none>
pn python3-apt-dbg <none>
-- no debconf information
Reply to: