Running apt-check --package-names returns an unknown error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-notifier (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
Wily |
Fix Released
|
High
|
Brian Murray | ||
Xenial |
Fix Released
|
High
|
Brian Murray |
Bug Description
When running /usr/lib/
$ /usr/lib/
E: Unknown Error: '<class 'TypeError'>' (map() must have at least two arguments.)
What I expected was a list of packages which can be upgraded.
From what I understand, the map function requires 2 arguments, but the list comprehension used is only creating a single argument, which is the package name.
I found if I changed the function
def write_package_
" write out package names that change to outstream "
pkgs = [pkg for pkg in cache.packages if depcache.
outstream.
def write_package_
" write out package names that change to outstream "
pkgs = [pkg for pkg in cache.packages if depcache.
outstream.
Additional info:
$ lsb_release -rd
Description: Ubuntu 15.10
Release: 15.10
$ apt-cache policy update-
update-
Installed: 3.163
Candidate: 3.163
Version table:
*** 3.163 0
500 http://
100 /var/lib/
Thanks
Dave
Related branches
- Dennis Kaarsemaker: Pending requested
- Diff: 0 lines
tags: | added: wily xenial |
Changed in update-notifier (Ubuntu Wily): | |
status: | New → Triaged |
Changed in update-notifier (Ubuntu Xenial): | |
status: | Confirmed → Triaged |
Changed in update-notifier (Ubuntu Wily): | |
importance: | Undecided → High |
Changed in update-notifier (Ubuntu Xenial): | |
importance: | Undecided → High |
Changed in update-notifier (Ubuntu Xenial): | |
assignee: | nobody → Brian Murray (brian-murray) |
status: | Triaged → In Progress |
Changed in update-notifier (Ubuntu Wily): | |
assignee: | nobody → Brian Murray (brian-murray) |
status: | Triaged → In Progress |
I can confirm this bug. I'm also seeing this on my system that I just upgraded to Wily. This problem did not exist prior to the upgrade.
$ cat /etc/lsb-release RELEASE= 15.10 CODENAME= wily DESCRIPTION= "Ubuntu 15.10"
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
I have a cron job that uses apt-check to check for available updates. This bug is breaking it.