apt-get update Problem

Nachtuhu

Cadet 3rd Year
Registriert
Feb. 2011
Beiträge
40
Hallo ihr Lieben,

ich bin noch nicht wirklich vertraut mit Linux (wird hoffntlich immer besser)

Habe beim updaten nun folgende Fehlermeldung:
E: Konnte Sperre /var/lib/dpkg/lock nicht bekommen - open (11: Die Ressource ist zur Zeit nicht verfügbar)
E: Sperren des Administrationsverzeichnisses (/var/lib/dpkg/) nicht möglich, wi rd es von einem anderen Prozess verwendet?


Als Linux Distribution benutze ich Debian LAMP 6.0.
Ich habe Root- Rechte

Vielen Dank schonmal im voraus

Nachtuhu
 
Zuletzt bearbeitet:
noch eine andere anwendung offen die mit apt arbeitet?
 
jo ich sehe gerade, dass phpmyadmin dadrauf noch zugreift.
Ergänzung ()

phpmyadmin macht große Problem!

Ich kann ihn auch nicht mehr über meine URL aufrufen.
Und deinstallieren kann ich ihn auch net, da kein apt Kommando ausgeführt wird :(
 
Poste mal ps -aux
Da muss was apt blockieren.
 
Kannst du den Text nicht kopieren ( makieren paste ins Forum bitte als Code )
 
Code:
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   8352   776 ?        Ss   Aug02   0:02 init [2]
root         2  0.0  0.0      0     0 ?        S    Aug02   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    Aug02   0:00 [migration/0]
root         4  0.0  0.0      0     0 ?        S    Aug02   0:01 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S    Aug02   0:00 [watchdog/0]
root         6  0.0  0.0      0     0 ?        S    Aug02   0:00 [migration/1]
root         7  0.0  0.0      0     0 ?        S    Aug02   0:11 [ksoftirqd/1]
root         8  0.0  0.0      0     0 ?        S    Aug02   0:00 [watchdog/1]
root         9  0.0  0.0      0     0 ?        S    Aug02   0:00 [migration/2]
root        10  0.0  0.0      0     0 ?        S    Aug02   0:01 [ksoftirqd/2]
root        11  0.0  0.0      0     0 ?        S    Aug02   0:00 [watchdog/2]
root        12  0.0  0.0      0     0 ?        S    Aug02   0:00 [migration/3]
root        13  0.0  0.0      0     0 ?        S    Aug02   0:01 [ksoftirqd/3]
root        14  0.0  0.0      0     0 ?        S    Aug02   0:00 [watchdog/3]
root        15  0.0  0.0      0     0 ?        R    Aug02   1:39 [events/0]
root        16  0.0  0.0      0     0 ?        S    Aug02   0:05 [events/1]
root        17  0.0  0.0      0     0 ?        S    Aug02   0:08 [events/2]
root        18  0.0  0.0      0     0 ?        S    Aug02   0:03 [events/3]
root        19  0.0  0.0      0     0 ?        S    Aug02   0:00 [cpuset]
root        20  0.0  0.0      0     0 ?        S    Aug02   0:00 [khelper]
root        21  0.0  0.0      0     0 ?        S    Aug02   0:00 [netns]
root        22  0.0  0.0      0     0 ?        S    Aug02   0:00 [async/mgr]
root        23  0.0  0.0      0     0 ?        S    Aug02   0:00 [pm]
root        24  0.0  0.0      0     0 ?        S    Aug02   0:00 [sync_supers]
root        25  0.0  0.0      0     0 ?        S    Aug02   0:00 [bdi-default]
root        26  0.0  0.0      0     0 ?        S    Aug02   0:00 [kintegrityd/0]
root        27  0.0  0.0      0     0 ?        S    Aug02   0:00 [kintegrityd/1]
root        28  0.0  0.0      0     0 ?        S    Aug02   0:00 [kintegrityd/2]
root        29  0.0  0.0      0     0 ?        S    Aug02   0:00 [kintegrityd/3]
root        30  0.0  0.0      0     0 ?        S    Aug02   0:00 [kblockd/0]
root        31  0.0  0.0      0     0 ?        S    Aug02   0:00 [kblockd/1]
root        32  0.0  0.0      0     0 ?        S    Aug02   0:00 [kblockd/2]
root        33  0.0  0.0      0     0 ?        S    Aug02   0:04 [kblockd/3]
root        34  0.0  0.0      0     0 ?        S    Aug02   0:00 [kseriod]
root        39  0.0  0.0      0     0 ?        S    Aug02   0:00 [kondemand/0]
root        40  0.0  0.0      0     0 ?        S    Aug02   0:00 [kondemand/1]
root        41  0.0  0.0      0     0 ?        S    Aug02   0:00 [kondemand/2]
root        42  0.0  0.0      0     0 ?        S    Aug02   0:00 [kondemand/3]
root        65  0.0  0.0      0     0 ?        S    Aug02   0:00 [khungtaskd]
root        66  0.0  0.0      0     0 ?        S    Aug02   1:03 [kswapd0]
root        67  0.0  0.0      0     0 ?        SN   Aug02   0:00 [ksmd]
root        68  0.0  0.0      0     0 ?        S    Aug02   0:00 [aio/0]
root        69  0.0  0.0      0     0 ?        S    Aug02   0:00 [aio/1]
root        70  0.0  0.0      0     0 ?        S    Aug02   0:00 [aio/2]
root        71  0.0  0.0      0     0 ?        S    Aug02   0:00 [aio/3]
root        72  0.0  0.0      0     0 ?        S    Aug02   0:00 [crypto/0]
root        73  0.0  0.0      0     0 ?        S    Aug02   0:00 [crypto/1]
root        74  0.0  0.0      0     0 ?        S    Aug02   0:00 [crypto/2]
root        75  0.0  0.0      0     0 ?        S    Aug02   0:00 [crypto/3]
root       188  0.0  0.0      0     0 ?        S    Aug02   0:00 [ksuspend_usbd]
root       189  0.0  0.0      0     0 ?        S    Aug02   0:00 [khubd]
root       190  0.0  0.0      0     0 ?        S    Aug02   0:00 [ata/0]
root       191  0.0  0.0      0     0 ?        S    Aug02   0:00 [ata/1]
root       192  0.0  0.0      0     0 ?        S    Aug02   0:00 [ata/2]
root       193  0.0  0.0      0     0 ?        S    Aug02   0:00 [ata/3]
root       194  0.0  0.0      0     0 ?        S    Aug02   0:00 [ata_aux]
root       198  0.0  0.0      0     0 ?        S    Aug02   0:00 [scsi_eh_0]
root       199  0.0  0.0      0     0 ?        S    Aug02   0:00 [scsi_eh_1]
root       203  0.0  0.0      0     0 ?        S    Aug02   0:00 [scsi_eh_2]
root       204  0.0  0.0      0     0 ?        S    Aug02   0:00 [scsi_eh_3]
root       205  0.0  0.0      0     0 ?        S    Aug02   0:00 [scsi_eh_4]
root       206  0.0  0.0      0     0 ?        S    Aug02   0:00 [scsi_eh_5]
root       229  0.0  0.0      0     0 ?        S    Aug02   0:00 [usbhid_resumer]
root       301  0.0  0.0      0     0 ?        S    Aug02   0:00 [md0_raid1]
root       308  0.0  0.0      0     0 ?        S    Aug02   1:09 [md1_raid1]
root       320  0.0  0.0      0     0 ?        S    Aug02   0:50 [kjournald]
root       426  0.0  0.0  16868   840 ?        S<s  Aug02   0:00 udevd --daemon
root       532  0.0  0.0      0     0 ?        S    Aug02   0:00 [kpsmoused]
root       556  0.0  0.0      0     0 ?        S    Aug02   0:00 [edac-poller]
root       573  0.0  0.0      0     0 ?        S    Aug02   0:00 [hd-audio0]
root       717  0.0  0.0      0     0 ?        S    Aug02   1:28 [flush-9:1]
root       895  0.0  0.0 119956  1860 ?        Sl   Aug02   0:02 /usr/sbin/rsyslogd -c4
root       951  0.0  0.0  23828  1012 ?        Ss   Aug02   0:00 /usr/sbin/cron
106        967  0.0  0.0  23260  1176 ?        Ss   Aug02   0:00 /usr/bin/dbus-daemon --system
root       977  0.0  0.0  12792   532 ?        Ss   Aug02   0:00 /sbin/mdadm --monitor --pid-file /var/run/mdadm/monitor.pid --daemonise --scan --syslog
root      1008  0.0  0.0   3952   612 ?        S    Aug02   0:00 /bin/sh /usr/bin/mysqld_safe
mysql     1136  0.0  0.3 169620 23824 ?        Sl   Aug02   0:52 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306
root      1137  0.0  0.0   3852   624 ?        S    Aug02   0:00 logger -t mysqld -p daemon.error
root      1325  0.0  0.0  37160  2372 ?        Ss   Aug02   0:00 /usr/lib/postfix/master
postfix   1340  0.0  0.0  39384  2332 ?        S    Aug02   0:00 qmgr -l -t fifo -u
root      1344  0.0  0.0   5928   612 tty1     Ss+  Aug02   0:00 /sbin/getty 38400 tty1
root      1345  0.0  0.0   5928   608 tty2     Ss+  Aug02   0:00 /sbin/getty 38400 tty2
root      1346  0.0  0.0   5928   612 tty3     Ss+  Aug02   0:00 /sbin/getty 38400 tty3
root      1347  0.0  0.0   5928   608 tty4     Ss+  Aug02   0:00 /sbin/getty 38400 tty4
root      1348  0.0  0.0   5928   608 tty5     Ss+  Aug02   0:00 /sbin/getty 38400 tty5
root      1349  0.0  0.0   5928   612 tty6     Ss+  Aug02   0:00 /sbin/getty 38400 tty6
root      1350  0.0  0.0  16864   772 ?        S<   Aug02   0:00 udevd --daemon
root      1351  0.0  0.0  16864   772 ?        S<   Aug02   0:00 udevd --daemon
root      1483  1.0  0.2 272308 18176 ?        Sl   Aug02  36:07 ./ts3server_linux_amd64
root      2104  0.0  0.1 131688  8540 ?        Ss   Aug02   0:03 /usr/sbin/apache2 -k start
www-data  8084  0.0  0.1 138044 11336 ?        S    Aug02   0:00 /usr/sbin/apache2 -k start
www-data  8088  0.0  0.1 132312  8012 ?        S    Aug02   0:00 /usr/sbin/apache2 -k start
www-data  8112  0.0  0.1 132336  8280 ?        S    Aug02   0:00 /usr/sbin/apache2 -k start
www-data  8155  0.0  0.0 132188  6088 ?        S    Aug02   0:00 /usr/sbin/apache2 -k start
www-data  8161  0.0  0.0 132188  6464 ?        S    Aug02   0:00 /usr/sbin/apache2 -k start
www-data  8162  0.0  0.0 132188  6464 ?        S    Aug02   0:00 /usr/sbin/apache2 -k start
www-data  8163  0.0  0.1 138044 11572 ?        S    Aug02   0:00 /usr/sbin/apache2 -k start
www-data  8175  0.0  0.0 132112  6804 ?        S    Aug02   0:00 /usr/sbin/apache2 -k start
www-data  8183  0.0  0.0 132312  7684 ?        S    Aug02   0:00 /usr/sbin/apache2 -k start
www-data  8184  0.0  0.0 132312  7664 ?        S    Aug02   0:00 /usr/sbin/apache2 -k start
postfix  14005  0.0  0.0  41744  3268 ?        S    Aug02   0:00 tlsmgr -l -t unix -u -c
proftpd  15592  0.0  0.0  91760  1976 ?        Ss   Aug03   0:00 proftpd: (accepting connections)
avahi    16250  0.0  0.0  33880  1596 ?        S    Aug03   0:00 avahi-daemon: running [luna1015.local]
avahi    16251  0.0  0.0  33756   524 ?        S    Aug03   0:00 avahi-daemon: chroot helper
root     17043  0.0  0.0  26592  1420 ?        Ss   Aug03   0:00 SCREEN -S minecraft java -Xms512M -Xmx512M -jar minecraft_server.jar nogui
root     17044  2.5  4.5 896216 360048 pts/3   Ssl+ Aug03  48:38 java -Xms512M -Xmx512M -jar minecraft_server.jar nogui
root     17108  0.0  0.2  51672 21224 ?        S    Aug03   0:02 apt-get remove phpmyadmin
root     17112  0.0  0.1  19476  9236 pts/4    Ss+  Aug03   0:00 /usr/bin/dpkg --status-fd 15 --force-depends --force-remove-essential --remove phpmyadmin
root     17113  0.0  0.1  55184 11240 pts/4    S+   Aug03   0:00 /usr/bin/perl -w /usr/share/debconf/frontend /var/lib/dpkg/info/phpmyadmin.prerm remove
root     17119  0.0  0.0   4208   880 pts/4    S+   Aug03   0:00 /bin/sh /var/lib/dpkg/info/phpmyadmin.prerm remove
root     17165  0.0  0.0  21496  1740 pts/4    S+   Aug03   0:00 whiptail --backtitle Paketkonfiguration --title Konfiguriere phpmyadmin --output-fd 11 --defaultno --yesno -- Da Sie phpmyadmin neu konfigurieren, möchten Sie vielleicht au
root     19232  0.0  0.0  49168  1144 ?        Ss   Aug03   0:00 /usr/sbin/sshd
root     19287  0.0  0.0  26724  1592 ?        Ss   Aug03   0:00 SCREEN -S minecraft java -Xms512M -Xmx512M -jar minecraft_server.jar nogui
root     19288  4.4  7.8 909284 625472 pts/2   Ssl+ Aug03  56:11 java -Xms512M -Xmx512M -jar minecraft_server.jar nogui
root     20278  0.0  0.0  72752  3488 ?        Ss   08:55   0:00 sshd: root@notty
root     20281  0.0  0.0  12448  1104 ?        Ss   08:55   0:00 /usr/lib/openssh/sftp-server
root     20409  1.2  0.0  75576  6464 ?        Ss   09:50   1:36 sshd: root@notty
root     20412  0.2  0.0  12496   920 ?        Ss   09:50   0:18 /usr/lib/openssh/sftp-server
root     20606  0.1  0.0  72548  3352 ?        Ss   11:55   0:00 sshd: root@pts/5
root     20609  0.0  0.0  20692  2052 pts/5    Ss   11:55   0:00 -bash
postfix  20616  0.0  0.0  39224  2292 ?        S    11:55   0:00 pickup -l -t fifo -u -c
root     20617  0.0  0.0  17740  1168 pts/5    R+   11:55   0:00 ps -aux
luna1015:~#
 
Hallo,

du kannst als root mal probieren "pkill apt"
dann wird apt halt beendet und du solltest dann apt-get wieder verwenden können da es ja wieder frei ist.

Gruß Hornster
 
apt-get remove phpmyadmin guck mal was da lief ....
 
Vielen Dank schonmal für die vielen Antworten,

ich den Dienst beendet, er wird auch aktuell nicht mehr ausgeführt, dennoch bleibt mein Problem :(. Ich hoffe ihr habt noch ein paar Ideen.


Beste Grüße
uHu


P.S: es funktioniert kein apt... Befehl. Immer noch kommt diese Fehlermeldung:
E: Konnte Sperre /var/lib/dpkg/lock nicht bekommen - open (11: Die Ressource ist zur Zeit nicht verfügbar)
E: Sperren des Administrationsverzeichnisses (/var/lib/dpkg/) nicht möglich, wird es von einem anderen Prozess verwendet?
 
Lock nicht aufrufbar

Wenn apt oder ein anderer Paketmanager beim Installieren die Fehlermeldung: "Konnte Lock nicht bekommen" ausgibt, sollte man die Datei /var/cache/apt/archives/lock mit Root-Rechten löschen.

http://wiki.ubuntuusers.de/apt-get

Ist wohl eine alte Lockdatei hängen geblieben und jetzt geht das System davon aus, dass da noch was in Arbeit ist.


mfg
aki
 
Hallo zusammen, hallo aki.

Ich habe die "lock"-Datei im angegebenen Verzeichnis mit "root" rechten gelöscht.

Der Fehler bleibt aber weiterhin :(
 
sudo rm /var/lib/dpkg/lock
das behebts bei mir auch immer wenn ich mal wieder den notebook bei ner installation ausgemacht hab:D
wenn das löschen geht is gut, wenns nich geht benutzt wirklich noch was die datei also naja einmal neustarten und ne cola holen is die schnelle windows variante, falls danach noch nich frei ist musste wirklich scuhen, vorher isses einfach nur leet.

ein tip: stell die Systemsprache (Nicht die des DE) auf englisch, dann ergeben die FEhlermeldungen auch halbwegs sinn.
 
Zuletzt bearbeitet:
So funzt wieder alles,

vielen Dank für die vielen Antworten,
aber AKI du bist der "Größte"!!! :king:

ich musste danach nur dpkg wieder manuell ausführen und schon liefs.
Yeeehaaa jetzt kann ich beruhigt ratzen gehn, nachtiiiiiiiii

Grüße
uHu
 
Zurück
Oben