/var/lib/dpkg/available is not updated when packages are installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
One Hundred Papercuts |
Fix Committed
|
High
|
Unassigned | ||
dpkg (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
This is a fresh install from a Xenial daily today. All I've done post-install is configure networking, add a ppa, update the apt-cache and dist-upgrade. Then I installed MAAS to the machine.
Now I am running a script we have to configure MAAS for Certification and discovered a part that does a dpkg query is failing. On further digging, it looks like dpkg is not able to properly query the database.
For example:
bladernr@
ii vim 2:7.4.826-1ubuntu3 amd64 Vi IMproved - enhanced vi editor
ii vim-common 2:7.4.826-1ubuntu3 amd64 Vi IMproved - Common files
ii vim-runtime 2:7.4.826-1ubuntu3 all Vi IMproved - Runtime files
ii vim-tiny 2:7.4.826-1ubuntu3 amd64 Vi IMproved - enhanced vi editor - compact
dpkg tells me I have vim installed. Now I try this:
bladernr@
dpkg-query: package 'vim' is not available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
man says this:
-p, --print-avail package-name...
installing packages does not update this file, apparently. This seems to be a regression as this works fine in Trusty.
Example: vim was installed via apt-get on Trusty here and dpkg -p works:
bladernr@sulaco:~$ dpkg -p vim
Package: vim
Priority: optional
Section: editors
Installed-Size: 2185
Maintainer: Ubuntu Developers <email address hidden>
Architecture: amd64
Version: 2:7.4.052-1ubuntu3
Provides: editor
Depends: vim-common (= 2:7.4.052-
Suggests: ctags, vim-doc, vim-scripts
Size: 955616
Description: Vi IMproved - enhanced vi editor
Vim is an almost compatible version of the UNIX editor Vi.
.
Many new features have been added: multi level undo, syntax
highlighting, command line history, on-line help, filename
completion, block operations, folding, Unicode support, etc.
.
This package contains a version of vim compiled with a rather
standard set of features. This package does not provide a GUI
version of Vim. See the other vim-* packages if you need more
(or less).
Homepage: http://
Original-
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: dpkg 1.18.4ubuntu1
ProcVersionSign
Uname: Linux 4.4.0-2-generic x86_64
ApportVersion: 2.19.4-0ubuntu2
Architecture: amd64
Date: Thu Feb 11 18:41:56 2016
InstallationDate: Installed on 2016-02-10 (1 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160210)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: dpkg
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in dpkg (Ubuntu): | |
importance: | Undecided → High |
Changed in hundredpapercuts: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in hundredpapercuts: | |
status: | Confirmed → Fix Committed |
Changed in dpkg (Ubuntu): | |
status: | Confirmed → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.