LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Bash command needed? (https://www.linuxquestions.org/questions/linux-newbie-8/bash-command-needed-932284/)

nnjond 03-02-2012 01:56 AM

Bash command needed?
 
Hi,

Can't shift this problem with a reboot; Any advice please?

Another application seems to be using the package system at this time. You must close all other package managers before you will be able to install or remove any packages.

Nermal 03-02-2012 02:08 AM

ok, I'm guessing it's Ubuntu.

The Update checker may be running. So leave it 10 mins and try again.

Update checker I think users apt-get in the back ground so try:

Code:

ps -e | grep apt
then you could kill that off so that you can run it manually.

EricTRA 03-02-2012 02:20 AM

Hi,

Apparently you are trying to update/upgrade using 'a' command / package manager application while some 'other' command / package manager application already has a lock on the package system. Find out which one using the ps command and shut it down. It would be easier to provide a more direct and complete answer if you provide more information about what exactly are you doing, and more important on what distro / version of Linux.

Kind regards,

Eric

nnjond 03-02-2012 04:42 AM

Thanks for your help.

Kubuntu 11.10

I'm informed of updates, but receive the above message when I try to install them.

Top returns the below, but I dont know how or what to "k"

Code:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND 
 2259 nnjond    20  0  228m  78m  18m S 14.5  8.3  0:47.07 chromium-
 2209 nnjond    20  0  208m  75m  16m S  6.0  8.1  0:06.17 chromium-
 1160 root      20  0  114m  44m  16m S  1.3  4.8  0:51.96 Xorg   
 1987 nnjond    20  0  109m  21m  17m S  1.3  2.3  0:11.58 konsole 
 2203 nnjond    20  0  163m  34m  17m S  1.3  3.7  0:04.16 chromium-
 1454 nnjond    20  0  338m  33m  14m S  0.7  3.5  0:23.80 plasma-de
 2061 nnjond    20  0  479m  74m  26m S  0.7  7.9  0:17.25 chromium-
 2146 nnjond    20  0  145m  19m  12m S  0.7  2.1  0:00.40 chromium-
 1315 root      20  0  6320  260  184 S  0.3  0.0  0:01.01 udisks-da
 1429 nnjond    20  0  163m  11m 7012 S  0.3  1.2  0:16.86 kwin   
 1534 nnjond    39  19 45936 6852 1148 S  0.3  0.7  0:05.41 virtuoso-
 1543 nnjond    20  0 63840 2712 2304 S  0.3  0.3  0:00.25 kaccess 
 2043 nnjond    20  0  2820 1064  848 R  0.3  0.1  0:04.74 top     
 2197 nnjond    20  0  222m  85m  20m S  0.3  9.2  0:09.69 chromium-
 2215 nnjond    20  0  287m 150m  19m S  0.3 16.0  0:40.84 chromium-
    1 root      20  0  3320  764  368 S  0.0  0.1  0:00.53 init   
    2 root      20  0    0    0    0 S  0.0  0.0  0:00.00 kthreadd
    3 root      20  0    0    0    0 S  0.0  0.0  0:00.59 ksoftirqd
    6 root      RT  0    0    0    0 S  0.0  0.0  0:00.00 migration
    7 root      0 -20    0    0    0 S  0.0  0.0  0:00.00 cpuset 
    8 root      0 -20    0    0    0 S  0.0  0.0  0:00.00 khelper 
    9 root      0 -20    0    0    0 S  0.0  0.0  0:00.00 netns   
  10 root      20  0    0    0    0 S  0.0  0.0  0:00.03 sync_supe
  11 root      20  0    0    0    0 S  0.0  0.0  0:00.00 bdi-defau
  12 root      0 -20    0    0    0 S  0.0  0.0  0:00.00 kintegrit
  13 root      0 -20    0    0    0 S  0.0  0.0  0:00.00 kblockd 
  14 root      0 -20    0    0    0 S  0.0  0.0  0:00.00 ata_sff 
  15 root      20  0    0    0    0 S  0.0  0.0  0:00.03 khubd   
  16 root      0 -20    0    0    0 S  0.0  0.0  0:00.00 md     
  19 root      20  0    0    0    0 S  0.0  0.0  0:00.00 khungtask
  20 root      20  0    0    0    0 S  0.0  0.0  0:02.06 kswapd0 
  21 root      25  5    0    0    0 S  0.0  0.0  0:00.00 ksmd   
  22 root      39  19    0    0    0 S  0.0  0.0  0:00.00 khugepage
  23 root      20  0    0    0    0 S  0.0  0.0  0:00.00 fsnotify_
  24 root      20  0    0    0    0 S  0.0  0.0  0:00.00 ecryptfs-
  25 root      0 -20    0    0    0 S  0.0  0.0  0:00.00 crypto 
  33 root      0 -20    0    0    0 S  0.0  0.0  0:00.00 kthrotld
  156 root      20  0    0    0    0 S  0.0  0.0  0:00.52 scsi_eh_0
  164 root      20  0    0    0    0 S  0.0  0.0  0:00.00 scsi_eh_1
  168 root      20  0    0    0    0 S  0.0  0.0  0:00.00 scsi_eh_2
  181 root      20  0    0    0    0 S  0.0  0.0  0:00.00 scsi_eh_3
  184 root      20  0    0    0    0 S  0.0  0.0


jv2112 03-02-2012 05:38 AM

Try --

Code:


fuser -v filename being used


this will show you a list of the PID & command so you can

Code:


kill -9 PID

Hope this helps :twocents:

nnjond 03-02-2012 05:58 AM

Thanks.

I don't what file name is being used?

nnjond 03-02-2012 01:41 PM

Solved

udo fuser -vki /var/lib/dpkg/lock;sudo dpkg --configure -a


All times are GMT -5. The time now is 12:32 PM.