Apt State update

Asked by kavi on 2019-09-27

/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

English Edit question
Ubuntu Edit question
No assignee Edit question
Last query:
Last reply:

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

Can you help with this problem?

Provide an answer of your own, or ask kavi for more information if necessary.

To post a message you must log in.