LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   dpkg is messing up for me. Help! (https://www.linuxquestions.org/questions/linux-software-2/dpkg-is-messing-up-for-me-help-695947/)

Joke-star 01-09-2009 04:33 PM

Quote:

Originally Posted by pljvaldez (Post 3402917)
Yes.

izese@izese-desktop:~$ dpkg --reconfigure -a
dpkg: unknown option --reconfigure

Type dpkg --help for help about installing and deinstalling packages[*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL)[*].

Options marked[*] produce a lot of output - pipe it through `less' or `more' !

What should i do now?

pljvaldez 01-09-2009 04:36 PM

Sorry, my fault. I meant dpkg --configure -a

Joke-star 01-09-2009 04:37 PM

Quote:

Originally Posted by pljvaldez (Post 3402924)
Sorry, my fault. I meant dpkg --configure -a

i got.

izese@izese-desktop:~$ dpkg --configure -a
dpkg: requested operation requires superuser privilege
izese@izese-desktop:~$ sudo dpkg --configure -a
dpkg: parse error, in file `/var/lib/dpkg/updates/0002' near line 1:
field name `
izese@izese-desktop:~$

pljvaldez 01-09-2009 04:41 PM

Okay, so now sudo rm /var/lib/dpkg/updates/0002 and then try the dpkg command again.

Basically, what I think happened was one of the updates got borked. So just keep deleting them one by one until the dpkg command works correctly.

Joke-star 01-09-2009 05:50 PM

Quote:

Originally Posted by pljvaldez (Post 3402933)
Okay, so now sudo rm /var/lib/dpkg/updates/0002 and then try the dpkg command again.

Basically, what I think happened was one of the updates got borked. So just keep deleting them one by one until the dpkg command works correctly.


izese@izese-desktop:~$ sudo rm /var/lib/dpkg/updates/0002
rm: cannot remove `/var/lib/dpkg/updates/0002': No such file or directory
izese@izese-desktop:~$ sudo rm /var/lib/dpkg/updates/0002

It must be deleted so how can i delete the others or is there an alternative to Dpkg?

pljvaldez 01-09-2009 06:16 PM

What is the output of ls -al /var/lib/dpkg/updates?

dpkg is the guts of the package management system. You won't be able to install any software until you resolve this situation.

Did you try running sudo dpkg --configure -a again?

zypres 04-27-2009 05:13 AM

I fixed it for me
 
My fix was deleting some more:
Code:

sudo rm /var/lib/dpkg/updates/00**
Then I did reconfigure -a and it all worked...


All times are GMT -5. The time now is 09:59 PM.