Results 1 to 10 of 10

Thread: Cannot using sudo apt-get install bulid essential?

  1. #1
    Join Date
    Oct 2012
    Beans
    2

    Cannot using sudo apt-get install bulid essential?

    I tried to install g++ via using sudo apt-get install build essential but it not work, it warned me message "Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
    ". How can i fix it???

  2. #2
    Join Date
    Jan 2008
    Location
    Nappanee, IN
    Beans
    602
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Cannot using sudo apt-get install bulid essential?

    That usually means you have Synaptic or the Update Manager open while you are trying to use apt-get.

  3. #3
    Join Date
    Aug 2009
    Location
    India
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Cannot using sudo apt-get install bulid essential?

    If an APT front-end crashed and your database is locked, try this in a terminal,

    Code:
    sudo fuser -vki /var/lib/dpkg/lock
    Code:
    sudo dpkg --configure -a

  4. #4
    Join Date
    Nov 2008
    Beans
    Hidden!

    Re: Cannot using sudo apt-get install bulid essential?

    Hi Nods; welcome to the forum

    Check out googlubuntu

  5. #5
    Join Date
    Jul 2011
    Beans
    3,037
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Cannot using sudo apt-get install bulid essential?

    Quote Originally Posted by NoDS View Post
    I tried to install g++ via using sudo apt-get install build essential but it not work, it warned me message "Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
    ". How can i fix it???
    Did you type in the name of the package as you have given in the post? If yes, thats not the correct name, which is build-essential, so what you would have to type in is

    Code:
    sudo apt-get install build-essential

  6. #6
    Join Date
    Sep 2012
    Location
    Virginia, USA
    Beans
    200
    Distro
    Ubuntu Development Release

    Re: Cannot using sudo apt-get install bulid essential?

    Quote Originally Posted by 2F4U View Post
    Did you type in the name of the package as you have given in the post? If yes, thats not the correct name, which is build-essential, so what you would have to type in is

    Code:
    sudo apt-get install build-essential
    While this is true, it wouldn't cause the error message that the OP received. It's likely that the error is caused by one of the things mentioned in the first two replies here.
    Asus K55A (Core i5-3210M @ 2.5GHz/8GB RAM/120GB SSD/Intel HD 4000) with Ubuntu 12.10 Beta 2
    Compaq Presario C700 (Pentium Dual-Core @ 1.6GHz/2.5GB RAM/500GB HDD/Intel GM965) with Arch Linux and Linux Mint Debian Edition

  7. #7
    Join Date
    Feb 2012
    Location
    Athens, Alabama
    Beans
    611
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Cannot using sudo apt-get install bulid essential?

    Quote Originally Posted by 2F4U View Post
    Did you type in the name of the package as you have given in the post? If yes, thats not the correct name, which is build-essential, so what you would have to type in is

    Code:
    sudo apt-get install build-essential
    The OP may need to run

    Code:
    sudo apt-get update
    Prior to running
    Code:
    sudo apt-get install build-essential

  8. #8
    Join Date
    Oct 2012
    Beans
    2

    Re: Cannot using sudo apt-get install bulid essential?

    Quote Originally Posted by karthick87 View Post
    If an APT front-end crashed and your database is locked, try this in a terminal,

    Code:
    sudo fuser -vki /var/lib/dpkg/lock
    Code:
    sudo dpkg --configure -a
    Thanks!! It worked! I must kill the process to do that

  9. #9
    Join Date
    Oct 2005
    Beans
    520

    Re: Cannot using sudo apt-get install bulid essential?

    I just install synaptic and use it for all that stuff.

    autoconf , build-essentials , etc

    For me using synaptic is way easier than then the others when i beed to install more than 2 or 3 packages.

  10. #10
    Join Date
    Feb 2012
    Location
    Athens, Alabama
    Beans
    611
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Cannot using sudo apt-get install bulid essential?

    Quote Originally Posted by NoDS View Post
    Thanks!! It worked! I must kill the process to do that
    Glad this is resolved for you! Please mark this thread as solved!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •