Stranica: 1/1.

/usr/bin/dpkg returned an error code (1)

Postano: 23 sij 2011, 00:59
Postao/la kvaju
Pozz

Pokušavao sam da intaliram Javu, jer mi je trebala za neki program (tux guitar).
tokom instalacije preko software managera u Mintu nešto nije prošlo ok, pa mi kad otvorim synaptic piše da imam 2 broken paketa, pa odem tamo u filtre synaptica, stoje 2 paketa jave.
uglavnom googlao sam pa sam pokušavao dosta tih komandi, ali kad pokrenem Update Manager, stalno mi piše u dnu another application is using APT.

Kod: Označi sve

[kvaju@kvaju-desktop ~]$ sudo killall -9 apt-get
apt-get: no process found

Kod: Označi sve

[kvaju@kvaju-desktop ~]$ sudo dpkg --configure -a
Setting up man-db (2.5.7-4) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing man-db (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up linux-headers-2.6.35-22-generic (2.6.35-22.35) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
 * dkms: running auto installation service for kernel 2.6.35-22-generic         
 *       vboxhost (4.0.2)...                                             [ OK ] 
 *       nvidia-current (260.19.06)...                                   [ OK ] 
run-parts: executing /etc/kernel/header_postinst.d/nvidia-common 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
run-parts: /etc/kernel/header_postinst.d/nvidia-common exited with return code 1
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-2.6.35-22-generic.postinst line 110.
dpkg: error processing linux-headers-2.6.35-22-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 man-db
 linux-headers-2.6.35-22-generic
[kvaju@kvaju-desktop ~]$ 

Kod: Označi sve

[kvaju@kvaju-desktop ~]$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have been kept back:
  linux-generic linux-headers-generic linux-image-generic
The following packages will be upgraded:
  linux-image-2.6.35-22-generic
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
2 not fully installed or removed.
Need to get 0B/33.8MB of archives.
After this operation, 4,096B of additional disk space will be used.
Do you want to continue [Y/n]? y
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading database ... 134834 files and directories currently installed.)
Preparing to replace linux-image-2.6.35-22-generic 2.6.35-22.33 (using .../linux-image-2.6.35-22-generic_2.6.35-22.35_i386.deb) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing /var/cache/apt/archives/linux-image-2.6.35-22-generic_2.6.35-22.35_i386.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-2.6.35-22-generic_2.6.35-22.35_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
[kvaju@kvaju-desktop ~]$ 

Kod: Označi sve

[kvaju@kvaju-desktop ~]$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up man-db (2.5.7-4) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing man-db (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up linux-headers-2.6.35-22-generic (2.6.35-22.35) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
 * dkms: running auto installation service for kernel 2.6.35-22-generic         
 *       vboxhost (4.0.2)...                                             [ OK ] 
 *       nvidia-current (260.19.06)...                                   [ OK ] 
run-parts: executing /etc/kernel/header_postinst.d/nvidia-common 2.6.35-22-generic /boot/vmlinuz-2.6.35-22-generic
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
run-parts: /etc/kernel/header_postinst.d/nvidia-common exited with return code 1
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-2.6.35-22-generic.postinst line 110.
dpkg: error processing linux-headers-2.6.35-22-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 man-db
 linux-headers-2.6.35-22-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
[kvaju@kvaju-desktop ~]$ 
ulavnom java mi više ne treba, al ovaj update manager stalno javlja da se neki apt vrti u pozadini, al mislim da nije, jer ga nevidim u system monitoru.
pa eto ako tko može pomoći bilo bi fino.

unaprjed hvala

Re: /usr/bin/dpkg returned an error code (1)

Postano: 23 sij 2011, 01:40
Postao/la shrike
pogledaj da li u /var/lock postoji neki dpkg ili apt, ako da onda ga izbriši. Naravno, kada to testiraš provjeri da stvarno ne vrtiš neki apt-get, dpkg ili aptitude ili synaptic.

Re: /usr/bin/dpkg returned an error code (1)

Postano: 23 sij 2011, 02:59
Postao/la kvaju
/var/lock direktorij je prazan.
dali možeš napisati možda šta trebam ukucati, ako ne radim nešto kako treba?

Re: /usr/bin/dpkg returned an error code (1)

Postano: 23 sij 2011, 12:09
Postao/la shrike
Dovoljno bi bilo pokrenuti

Kod: Označi sve

ls -la /var/lock

Re: /usr/bin/dpkg returned an error code (1)

Postano: 23 sij 2011, 13:15
Postao/la kvaju
Sad je uredu..@shirke hvala ti, nakon što sam sinoć ugasio komp, jutros je sve ok, update manager je normalno pokupio i instalirao update.
hvala još jednom

Kod: Označi sve

[kvaju@kvaju-desktop ~]$ ls -la /var/lock
total 4
drwxrwxrwt  2 root root   40 2011-01-23 13:04 .
drwxr-xr-x 13 root root 4096 2010-10-10 16:34 ..