apt-get dpkg error 5%dpkg
hi
when i try to install or remove any package i get this error Quote:
can't install or uninstall or update any thing coz of this error. pls help me out.. |
have you tried running sudo dpkg --configure -a
|
Can you post your /var/lib/dpkg/info/libsox-fmt-alsa.list file?
Code:
cat /var/lib/dpkg/info/libsox-fmt-alsa.list Evo2. |
sorry for late reply
here are the contents of file Quote:
|
Wow, somehow that file has become completely corrupted. From the following page
http://packages.ubuntu.com/karmic/i3...-alsa/filelist I think the contents should be: Code:
/usr That should fix this problem, but it is possible there will be other problems. Evo2. |
thanks for quick reply
now the error is changed Quote:
|
is there a way i can refresh all the conf files, just like a fresh instalation.
|
Quote:
Code:
wget http://mirrors.kernel.org/ubuntu/pool/universe/s/sox/libsox-fmt-alsa_14.3.0-1build1_i386.deb |
please do not mind for my english
evo2 it did not worked Quote:
|
Sorry I didn't see post #6, only post #7. Looks like kubuntu-default-settings.list has been deleted. You can recreate this file in the same way that you fixed libsox_fmt_als.list. However I'm worried that many of these files are missing or corrupt.
Did something strange happen to your /var directory/partition? One way to recover these files in bulk is to copy them from another machine that has the same packages installed. Evo2. |
Quote:
|
Quote:
Code:
dpkg -l | grep ^ii | awk '{ print $2 }' Code:
echo /usr/share/doc/* | tr ' ' '\n' | cut -f5 -d'/' |
i think i have all messed up ubuntu that will not be possible to install all the packages on the other machine
any other way to do it? if i reinstall all karmic then can i reinstall all the software in one go which i have installed here |
[QUOTE=akhund_bilal;3858800]i think i have all messed up ubuntu that will not be possible to install all the packages on the other machine
[quote] It should not be that hard. Just get the list of packages using one of the methods I described in in my earlier post: you can put the list directly into a file with: Code:
dpkg -l | grep ^ii | awk '{ print $2 }' > packages.txt Code:
sudo apt-get install $(cat packages.txt) On new machine Code:
mkdir ~/listfiles Next you have to copy them to your broken machine. This could be done with a usb stick or scp depending on your situation. Quote:
Evo2 |
thanks i am going for a fresh install both methods takes same time
thanks for your time i have learned many new things thanks |
Quote:
Quote:
Cheers, Evo2. |
Quote:
I read your comments on this thread https://www.linuxquestions.org/quest...-5dpkg-788082/ and I replaced *.list file with proper content. But what about the other files like triggers, shlibs, symbols? ll /var/lib/dpkg/info|grep libport -rw-r--r-- 1 root root 321 Oct 23 2020 libportaudio2:amd64.list -rw-r--r-- 1 root root 311 Jul 30 2020 libportaudio2:amd64.md5sums -rw-r--r-- 1 root root 29 Jul 30 2020 libportaudio2:amd64.shlibs -rw-r--r-- 1 root root 2118 Jul 30 2020 libportaudio2:amd64.symbols -rw-r--r-- 1 root root 72 Jul 30 2020 libportaudio2:amd64.triggers -rw-r--r--. 1 root root 219 Jan 16 11:24 libportsmf0v5:amd64.list -rw-r--r--. 1 root root 309 Mar 22 2020 libportsmf0v5:amd64.md5sums -rw-r--r--. 1 root root 27 Mar 22 2020 libportsmf0v5:amd64.shlibs -rw-r--r--. 1 root root 72 Mar 22 2020 libportsmf0v5:amd64.triggers https://www.linuxquestions.org/quest...23#post6318823 Thank you! |
Hi,
please start a new thread explaining your problem, then we can try to help. Evo2. Quote:
|
All times are GMT -5. The time now is 11:48 PM. |