tavi_10
August 6th, 2009, 08:21 AM
It seems that i managed to corrupt my Ubuntu instalation (and thatțs a bad thing).
So i have the latest stable version installed, 9.04.
Done before getting the error:
Ran out of space, so i ran various commands found on the internet to free up some space. I don't actaully know what the commands are, i've found them on these forums, so i guess they are ok.
I've changed the disk that contains the /var directory (done a lot of faulty tries befo managing to do it right).
My problem is that i can't install anything, can't upgrade, can't run Firefox (using Opera now). Even a bigger problem is that i have Ubuntu installed in Romanian and pasting the errors will be pretty hard (and, of course, as i can't install anything, can't install the English language pack).
The errors look like:
When using
sudo apt-get upgrade
I get:
The following packaged have dependencies not satisfied:
sudo apt-get upgradefirefox-3.0-branding: Depends on: firefox-3.0 (= 3.0.13+nobinonly-0ubuntu0.9.04.1) but 3.0.12+build1+nobinonly-0ubuntu0.9.04.1 is installed
Dependencies not satisfied, try using -f
At
sudo apt-get -f install (translated only the first lines as it says the same all the time, but with other package).
The following packages will be installed:
firefox-3.0 libnss3-1d xulrunner-1.9
Suggested packages:
ubufox firefox-3.0-gnome-support
The following packages will be updated:
firefox-3.0 libnss3-1d xulrunner-1.9
3 updated, 0 newly installed, 0 to be deleted and 5 renewed.
10 packages installed or completely removed.
You need to download 0B/17,1MB in archives.
After this operation 69.6kB of disk space will be freed.
Will you continue? y
Configuring packages...
(Reading the db...
dpkg: Severe warning: The file with package list for 'dash' is missing, considering that it has no file.
dpkg: Severe warning: The file with package list for 'screen-profiles' is missing, considering that it has no file.
dpkg: Severe warning: The file with package list for 'dictionaries-common' is missing, considering that it has no file.
dpkg: Severe warning: The file with package list for 'notify-osd' is missing, considering that it has no file.
168036 files and directories currently installed.)
Preparing replacement of libnspr4-0d 4.7.3-0ubuntu2 (usiong .../libnspr4-0d_4.7.3-0ubuntu2_amd64.deb) ...
dpkg (subprocess): Could not run pre-removal old: Permission denied
dpkg: avertisment - script pre-removal old returned with error exit code 2
dpkg - trying the script from the new package instead ...
dpkg (subprocess): Could not run pre-removal new: Permission denied
dpkg: error at proecssing /var/cache/apt/archives/libnspr4-0d_4.7.3-0ubuntu2_amd64.deb (--unpack):
subprocess script pre-removal new returned with error exit code 2
dpkg (subproces): impossible executing post-installation script: Permission denied
dpkg: error while cleaning:
subprocesul post-installation script returns error exit code 2
Preparing for replacement of libnss3-1d 3.12.2~rc1-0ubuntu2 (using .../libnss3-1d_3.12.3.1-0ubuntu0.9.04.1_amd64.deb) ...
dpkg (subproces): impossible executing script pre-removal old: Permission denied
dpkg: avertisment - script pre-removal old returned error exit code 2
dpkg - trying the script from the new package instead ...
dpkg (subproces): impossible to execute script pre-removal new: Permission denied
dpkg: error processing /var/cache/apt/archives/libnss3-1d_3.12.3.1-0ubuntu0.9.04.1_amd64.deb (--unpack):
subprocesul script pre-removal nou returnează starea de eroare la ieșire 2
dpkg (subproces): imposibil a executa post-installation script: Permission denied
dpkg: eroare īn timpul curățării:
subprocesul post-installation script returnează starea de eroare la ieșire 2
Se pregătește īnlocuirea lui xulrunner-1.9 1.9.0.12+build1+nobinonly-0ubuntu0.9.04.1 (folosind .../xulrunner-1.9_1.9.0.13+nobinonly-0ubuntu0.9.04.1_amd64.deb) ...
dpkg (subproces): imposibil a executa script pre-removal vechi: Permission denied
dpkg: avertisment - script pre-removal vechi returnat cu starea de eroare la ieșire 2
dpkg - īncerc scriptul din noul pachet īn loc ...
dpkg (subproces): imposibil a executa script pre-removal nou: Permission denied
dpkg: eroare la procesarea /var/cache/apt/archives/xulrunner-1.9_1.9.0.13+nobinonly-0ubuntu0.9.04.1_amd64.deb (--unpack):
subprocesul script pre-removal nou returnează starea de eroare la ieșire 2
dpkg (subproces): imposibil a executa post-installation script: Permission denied
dpkg: eroare īn timpul curățării:
subprocesul post-installation script returnează starea de eroare la ieșire 2
Se pregătește īnlocuirea lui firefox-3.0 3.0.12+build1+nobinonly-0ubuntu0.9.04.1 (folosind .../firefox-3.0_3.0.13+nobinonly-0ubuntu0.9.04.1_amd64.deb) ...
dpkg (subproces): imposibil a executa script pre-removal vechi: Permission denied
dpkg: avertisment - script pre-removal vechi returnat cu starea de eroare la ieșire 2
dpkg - īncerc scriptul din noul pachet īn loc ...
dpkg (subproces): imposibil a executa script pre-removal nou: Permission denied
dpkg: eroare la procesarea /var/cache/apt/archives/firefox-3.0_3.0.13+nobinonly-0ubuntu0.9.04.1_amd64.deb (--unpack):
subprocesul script pre-removal nou returnează starea de eroare la ieșire 2
No apport report written because MaxReports is reached already
dpkg (subproces): imposibil a executa post-installation script: Permission denied
dpkg: eroare īn timpul curățării:
subprocesul post-installation script returnează starea de eroare la ieșire 2
Se pregătește īnlocuirea lui libwbclient0 2:3.3.2-1ubuntu3 (folosind .../libwbclient0_2%3a3.3.2-1ubuntu3_amd64.deb) ...
Se dezarhivează pachetul īnlocuitor (libwbclient0) ...
dpkg (subproces): imposibil a executa script post-removal vechi: Permission denied
dpkg: avertisment - script post-removal vechi returnat cu starea de eroare la ieșire 2
dpkg - īncerc scriptul din noul pachet īn loc ...
dpkg (subproces): imposibil a executa script post-removal nou: Permission denied
dpkg: eroare la procesarea /var/cache/apt/archives/libwbclient0_2%3a3.3.2-1ubuntu3_amd64.deb (--unpack):
subprocesul script post-removal nou returnează starea de eroare la ieșire 2
No apport report written because MaxReports is reached already
dpkg (subproces): imposibil a executa noul post-removal script: Permission denied
dpkg: eroare īn timpul curățării:
subprocesul post-removal script returnează starea de eroare la ieșire 2
Se pregătește īnlocuirea lui libxklavier12 3.9-0ubuntu1 (folosind .../libxklavier12_3.9-0ubuntu1_amd64.deb) ...
Se dezarhivează pachetul īnlocuitor (libxklavier12) ...
dpkg (subproces): imposibil a executa script post-removal vechi: Permission denied
dpkg: avertisment - script post-removal vechi returnat cu starea de eroare la ieșire 2
dpkg - īncerc scriptul din noul pachet īn loc ...
dpkg (subproces): imposibil a executa script post-removal nou: Permission denied
dpkg: eroare la procesarea /var/cache/apt/archives/libxklavier12_3.9-0ubuntu1_amd64.deb (--unpack):
subprocesul script post-removal nou returnează starea de eroare la ieșire 2
dpkg (subproces): imposibil a executa noul post-removal script: Permission denied
No apport report written because MaxReports is reached already
dpkg: error while cleaning up:
subprocesul post-removal script returnează starea de eroare la ieșire 2
Se pregătește īnlocuirea lui samba-common 2:3.3.2-1ubuntu3 (folosind .../samba-common_2%3a3.3.2-1ubuntu3_amd64.deb) ...
dpkg (subproces): imposibil a executa script pre-removal vechi: Permission denied
dpkg: avertisment - script pre-removal vechi returnat cu starea de eroare la ieșire 2
dpkg - īncerc scriptul din noul pachet īn loc ...
dpkg (subproces): imposibil a executa script pre-removal nou: Permission denied
dpkg: eroare la procesarea /var/cache/apt/archives/samba-common_2%3a3.3.2-1ubuntu3_amd64.deb (--unpack):
subprocesul script pre-removal nou returnează starea de eroare la ieșire 2
No apport report written because MaxReports is reached already
dpkg (subproces): imposibil a executa post-installation script: Permission denied
dpkg: eroare īn timpul curățării:
subprocesul post-installation script returnează starea de eroare la ieșire 2
Se pregătește īnlocuirea lui libsmbclient 2:3.3.2-1ubuntu3 (folosind .../libsmbclient_2%3a3.3.2-1ubuntu3_amd64.deb) ...
Se dezarhivează pachetul īnlocuitor (libsmbclient) ...
dpkg (subproces): imposibil a executa script post-removal vechi: Permission denied
dpkg: avertisment - script post-removal vechi returnat cu starea de eroare la ieșire 2
dpkg - īncerc scriptul din noul pachet īn loc ...
dpkg (subproces): imposibil a executa script post-removal nou: Permission denied
dpkg: eroare la procesarea /var/cache/apt/archives/libsmbclient_2%3a3.3.2-1ubuntu3_amd64.deb (--unpack):
subprocesul script post-removal nou returnează starea de eroare la ieșire 2
No apport report written because MaxReports is reached already
dpkg (subproces): imposibil a executa noul post-removal script: Permission denied
dpkg: eroare īn timpul curățării:
subprocesul post-removal script returnează starea de eroare la ieșire 2
Erori īntālnite īn timpul prelucrării:
/var/cache/apt/archives/libnspr4-0d_4.7.3-0ubuntu2_amd64.deb
/var/cache/apt/archives/libnss3-1d_3.12.3.1-0ubuntu0.9.04.1_amd64.deb
/var/cache/apt/archives/xulrunner-1.9_1.9.0.13+nobinonly-0ubuntu0.9.04.1_amd64.deb
/var/cache/apt/archives/firefox-3.0_3.0.13+nobinonly-0ubuntu0.9.04.1_amd64.deb
/var/cache/apt/archives/libwbclient0_2%3a3.3.2-1ubuntu3_amd64.deb
/var/cache/apt/archives/libxklavier12_3.9-0ubuntu1_amd64.deb
/var/cache/apt/archives/samba-common_2%3a3.3.2-1ubuntu3_amd64.deb
/var/cache/apt/archives/libsmbclient_2%3a3.3.2-1ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Also, trying to rely on the info i've found, i tried to delete some files from dpkg folder, as some said that worked. It did not for me.
So i have the latest stable version installed, 9.04.
Done before getting the error:
Ran out of space, so i ran various commands found on the internet to free up some space. I don't actaully know what the commands are, i've found them on these forums, so i guess they are ok.
I've changed the disk that contains the /var directory (done a lot of faulty tries befo managing to do it right).
My problem is that i can't install anything, can't upgrade, can't run Firefox (using Opera now). Even a bigger problem is that i have Ubuntu installed in Romanian and pasting the errors will be pretty hard (and, of course, as i can't install anything, can't install the English language pack).
The errors look like:
When using
sudo apt-get upgrade
I get:
The following packaged have dependencies not satisfied:
sudo apt-get upgradefirefox-3.0-branding: Depends on: firefox-3.0 (= 3.0.13+nobinonly-0ubuntu0.9.04.1) but 3.0.12+build1+nobinonly-0ubuntu0.9.04.1 is installed
Dependencies not satisfied, try using -f
At
sudo apt-get -f install (translated only the first lines as it says the same all the time, but with other package).
The following packages will be installed:
firefox-3.0 libnss3-1d xulrunner-1.9
Suggested packages:
ubufox firefox-3.0-gnome-support
The following packages will be updated:
firefox-3.0 libnss3-1d xulrunner-1.9
3 updated, 0 newly installed, 0 to be deleted and 5 renewed.
10 packages installed or completely removed.
You need to download 0B/17,1MB in archives.
After this operation 69.6kB of disk space will be freed.
Will you continue? y
Configuring packages...
(Reading the db...
dpkg: Severe warning: The file with package list for 'dash' is missing, considering that it has no file.
dpkg: Severe warning: The file with package list for 'screen-profiles' is missing, considering that it has no file.
dpkg: Severe warning: The file with package list for 'dictionaries-common' is missing, considering that it has no file.
dpkg: Severe warning: The file with package list for 'notify-osd' is missing, considering that it has no file.
168036 files and directories currently installed.)
Preparing replacement of libnspr4-0d 4.7.3-0ubuntu2 (usiong .../libnspr4-0d_4.7.3-0ubuntu2_amd64.deb) ...
dpkg (subprocess): Could not run pre-removal old: Permission denied
dpkg: avertisment - script pre-removal old returned with error exit code 2
dpkg - trying the script from the new package instead ...
dpkg (subprocess): Could not run pre-removal new: Permission denied
dpkg: error at proecssing /var/cache/apt/archives/libnspr4-0d_4.7.3-0ubuntu2_amd64.deb (--unpack):
subprocess script pre-removal new returned with error exit code 2
dpkg (subproces): impossible executing post-installation script: Permission denied
dpkg: error while cleaning:
subprocesul post-installation script returns error exit code 2
Preparing for replacement of libnss3-1d 3.12.2~rc1-0ubuntu2 (using .../libnss3-1d_3.12.3.1-0ubuntu0.9.04.1_amd64.deb) ...
dpkg (subproces): impossible executing script pre-removal old: Permission denied
dpkg: avertisment - script pre-removal old returned error exit code 2
dpkg - trying the script from the new package instead ...
dpkg (subproces): impossible to execute script pre-removal new: Permission denied
dpkg: error processing /var/cache/apt/archives/libnss3-1d_3.12.3.1-0ubuntu0.9.04.1_amd64.deb (--unpack):
subprocesul script pre-removal nou returnează starea de eroare la ieșire 2
dpkg (subproces): imposibil a executa post-installation script: Permission denied
dpkg: eroare īn timpul curățării:
subprocesul post-installation script returnează starea de eroare la ieșire 2
Se pregătește īnlocuirea lui xulrunner-1.9 1.9.0.12+build1+nobinonly-0ubuntu0.9.04.1 (folosind .../xulrunner-1.9_1.9.0.13+nobinonly-0ubuntu0.9.04.1_amd64.deb) ...
dpkg (subproces): imposibil a executa script pre-removal vechi: Permission denied
dpkg: avertisment - script pre-removal vechi returnat cu starea de eroare la ieșire 2
dpkg - īncerc scriptul din noul pachet īn loc ...
dpkg (subproces): imposibil a executa script pre-removal nou: Permission denied
dpkg: eroare la procesarea /var/cache/apt/archives/xulrunner-1.9_1.9.0.13+nobinonly-0ubuntu0.9.04.1_amd64.deb (--unpack):
subprocesul script pre-removal nou returnează starea de eroare la ieșire 2
dpkg (subproces): imposibil a executa post-installation script: Permission denied
dpkg: eroare īn timpul curățării:
subprocesul post-installation script returnează starea de eroare la ieșire 2
Se pregătește īnlocuirea lui firefox-3.0 3.0.12+build1+nobinonly-0ubuntu0.9.04.1 (folosind .../firefox-3.0_3.0.13+nobinonly-0ubuntu0.9.04.1_amd64.deb) ...
dpkg (subproces): imposibil a executa script pre-removal vechi: Permission denied
dpkg: avertisment - script pre-removal vechi returnat cu starea de eroare la ieșire 2
dpkg - īncerc scriptul din noul pachet īn loc ...
dpkg (subproces): imposibil a executa script pre-removal nou: Permission denied
dpkg: eroare la procesarea /var/cache/apt/archives/firefox-3.0_3.0.13+nobinonly-0ubuntu0.9.04.1_amd64.deb (--unpack):
subprocesul script pre-removal nou returnează starea de eroare la ieșire 2
No apport report written because MaxReports is reached already
dpkg (subproces): imposibil a executa post-installation script: Permission denied
dpkg: eroare īn timpul curățării:
subprocesul post-installation script returnează starea de eroare la ieșire 2
Se pregătește īnlocuirea lui libwbclient0 2:3.3.2-1ubuntu3 (folosind .../libwbclient0_2%3a3.3.2-1ubuntu3_amd64.deb) ...
Se dezarhivează pachetul īnlocuitor (libwbclient0) ...
dpkg (subproces): imposibil a executa script post-removal vechi: Permission denied
dpkg: avertisment - script post-removal vechi returnat cu starea de eroare la ieșire 2
dpkg - īncerc scriptul din noul pachet īn loc ...
dpkg (subproces): imposibil a executa script post-removal nou: Permission denied
dpkg: eroare la procesarea /var/cache/apt/archives/libwbclient0_2%3a3.3.2-1ubuntu3_amd64.deb (--unpack):
subprocesul script post-removal nou returnează starea de eroare la ieșire 2
No apport report written because MaxReports is reached already
dpkg (subproces): imposibil a executa noul post-removal script: Permission denied
dpkg: eroare īn timpul curățării:
subprocesul post-removal script returnează starea de eroare la ieșire 2
Se pregătește īnlocuirea lui libxklavier12 3.9-0ubuntu1 (folosind .../libxklavier12_3.9-0ubuntu1_amd64.deb) ...
Se dezarhivează pachetul īnlocuitor (libxklavier12) ...
dpkg (subproces): imposibil a executa script post-removal vechi: Permission denied
dpkg: avertisment - script post-removal vechi returnat cu starea de eroare la ieșire 2
dpkg - īncerc scriptul din noul pachet īn loc ...
dpkg (subproces): imposibil a executa script post-removal nou: Permission denied
dpkg: eroare la procesarea /var/cache/apt/archives/libxklavier12_3.9-0ubuntu1_amd64.deb (--unpack):
subprocesul script post-removal nou returnează starea de eroare la ieșire 2
dpkg (subproces): imposibil a executa noul post-removal script: Permission denied
No apport report written because MaxReports is reached already
dpkg: error while cleaning up:
subprocesul post-removal script returnează starea de eroare la ieșire 2
Se pregătește īnlocuirea lui samba-common 2:3.3.2-1ubuntu3 (folosind .../samba-common_2%3a3.3.2-1ubuntu3_amd64.deb) ...
dpkg (subproces): imposibil a executa script pre-removal vechi: Permission denied
dpkg: avertisment - script pre-removal vechi returnat cu starea de eroare la ieșire 2
dpkg - īncerc scriptul din noul pachet īn loc ...
dpkg (subproces): imposibil a executa script pre-removal nou: Permission denied
dpkg: eroare la procesarea /var/cache/apt/archives/samba-common_2%3a3.3.2-1ubuntu3_amd64.deb (--unpack):
subprocesul script pre-removal nou returnează starea de eroare la ieșire 2
No apport report written because MaxReports is reached already
dpkg (subproces): imposibil a executa post-installation script: Permission denied
dpkg: eroare īn timpul curățării:
subprocesul post-installation script returnează starea de eroare la ieșire 2
Se pregătește īnlocuirea lui libsmbclient 2:3.3.2-1ubuntu3 (folosind .../libsmbclient_2%3a3.3.2-1ubuntu3_amd64.deb) ...
Se dezarhivează pachetul īnlocuitor (libsmbclient) ...
dpkg (subproces): imposibil a executa script post-removal vechi: Permission denied
dpkg: avertisment - script post-removal vechi returnat cu starea de eroare la ieșire 2
dpkg - īncerc scriptul din noul pachet īn loc ...
dpkg (subproces): imposibil a executa script post-removal nou: Permission denied
dpkg: eroare la procesarea /var/cache/apt/archives/libsmbclient_2%3a3.3.2-1ubuntu3_amd64.deb (--unpack):
subprocesul script post-removal nou returnează starea de eroare la ieșire 2
No apport report written because MaxReports is reached already
dpkg (subproces): imposibil a executa noul post-removal script: Permission denied
dpkg: eroare īn timpul curățării:
subprocesul post-removal script returnează starea de eroare la ieșire 2
Erori īntālnite īn timpul prelucrării:
/var/cache/apt/archives/libnspr4-0d_4.7.3-0ubuntu2_amd64.deb
/var/cache/apt/archives/libnss3-1d_3.12.3.1-0ubuntu0.9.04.1_amd64.deb
/var/cache/apt/archives/xulrunner-1.9_1.9.0.13+nobinonly-0ubuntu0.9.04.1_amd64.deb
/var/cache/apt/archives/firefox-3.0_3.0.13+nobinonly-0ubuntu0.9.04.1_amd64.deb
/var/cache/apt/archives/libwbclient0_2%3a3.3.2-1ubuntu3_amd64.deb
/var/cache/apt/archives/libxklavier12_3.9-0ubuntu1_amd64.deb
/var/cache/apt/archives/samba-common_2%3a3.3.2-1ubuntu3_amd64.deb
/var/cache/apt/archives/libsmbclient_2%3a3.3.2-1ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Also, trying to rely on the info i've found, i tried to delete some files from dpkg folder, as some said that worked. It did not for me.