Apt State update

Asked by kavi

/var/lib/apt/lists directory has two kinds of files (*_Packages, *_Translation-en).

/var/lib/apt/lists/*_Packages - contains the full package information with short description.
/var/lib/apt/lists/*_Translation_en - contains the full description for all the packages.

These files are used to build the cache files (/var/cache/apt/pkgcache.bin and srcpkgcache.bin ).

I had removed a package information in /var/lib/apt/lists/*_Packages file.
Then I ran "apt-get update" but my change is not reverted. Is it a BUG?

Since the cache files (/var/cache/apt/pkgcache.bin and srcpkgcache.bin ) is build based on /var/lib/apt/lists/*_Packages. When do these files (/var/lib/apt/lists/*_Packages) get updated?

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Does this help:

sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update
sudo dpkg --clear-avail
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get update
sudo apt-get dist-upgrade

Revision history for this message
kavi (kavithar1) said :
#2

I am trying to understand the implementation.

The answer provided by @actionparsnip is to make apt-get work incase of any issue.

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.