Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

When I want to install a program, I'm unable to. For example:

 pooya@pooya:~$ sudo apt-get install vlc
 debconf: apt-extracttemplates failed: No such file or directory
 Extracting templates from packages: 100%
 dpkg: error: failed to open package info file `/var/lib/dpkg/available' for reading:    No  such file or directory
 E: Sub-process /usr/bin/dpkg returned an error code (2)
share|improve this question

closed as too localized by James Jan 25 '13 at 18:43

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

whats the output of apt-get update ? – Raja Dec 27 '12 at 15:28
do you have the same problem when using the software center? – don.joey Dec 27 '12 at 16:00
And what's the output of ls -l /var/lib/dpkg? Maybe this is what happened. – sierrasdetandil Dec 27 '12 at 16:34

1 Answer 1

and i have the same problem install a program in software center

Package operation failed The installation or removal of a software package failed. dpkg: error: reading package info file '/var/lib/dpkg/available': Is a directory Error in function:

pooya@pooya:/var/lib/dpkg$ ls -l total 12 drwxr-xr-x 2 root root 4096 Dec 27 15:23 available -rw-r----- 1 root root 0 Dec 28 12:26 lock -rw-r--r-- 1 root root 0 Dec 27 09:07 status drwxr-xr-x 2 root root 4096 Dec 27 15:27 triggers drwxr-xr-x 2 root root 4096 Dec 27 15:27 updates

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.