I'm having trouble installing anything through the terminal, I'm using Ubuntu GNOME 15.10. After typing in my password I get this message      E: 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?     Any help would be appreciated, thank you
3087
I get this error when trying to use apt-get:  E: 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 this?
7563
When I run sudo the terminal is stuck for a few seconds and then outputs an error message. My terminal looks like this:  ubuntu@(none):~$ sudo true sudo: unable to resolve host (none)   What can I do to solve it?
44394
I recently moved to Linux, and I am in love with the experience. Opinions apart, I am having problems when running sudo dpkg --configure -a  My computer stops processing the command here:  You may know Adobe Flash Player is no longer supported, and I believe that could be why the command is unable to load pepperflashplugin-nonfree. I have tried fixing the problem by checking older posts here, but none of them was able to fix this problem.
38096
There is no "Lock" option showing up in the user menu, and the standard shortcuts (Ctrl+L or Ctrl+Alt+L) don't do anything.  I'm running Fedora 19 with Gnome Shell 3.8.3, and XDM 1.1.11.  I'm using XDM because of broken XDMCP support in GDM - but before I upgraded to Fedora 19, I did have the lock option, even when using XDM.     I've posted an answer reflecting the results of my own research. It basically says that it's not possible to have screen-lock integrated into Gnome 3.8 without running GDM.      I really hope there's a better answer available though - so please add your own answer if there's any way to do this that I overlooked.
74984
when I try to apt-get update I'm getting the below error,  E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/
50998
Accidentally removed my gnome desktop and am stuck in tty1. Trying to reinstall the desktop and keep getting the error "user is not in the sudoers file". Having trouble adding my user, new to debian and am not sure how to correctly open/edit sudoers from tty1 (or really how to edit files from cmd line for that matter if someone could please lend some specifics)!
20789
I have accidentally removed apt-get, how do I reinstall it?  $ sudo apt-get update sudo: apt-get: command not found  $ sudo dpkg-reconfigure apt /usr/sbin/dpkg-reconfigure: apt is broken or not fully installed    I would like to mention I do not want to reinstall Linux!
32147
Can anyone help me providing terminal command to download and install the software provided by Software center?  Actually I'm searching for command to download and install KDbg (Debugger) via terminal.
101069
I hope you can help me. I installed Ubuntu 18.04 a few days ago and, while trying to configure it and installing new packaged and software, I think I did something bad. I think it could be related with installing python. Anyway, netiher the gnome-terminal or gnome-tweaks can´t start anymores. Also, when I try to update (sudo apt-get update) it gives me the following error:  sh 1: /usr/lib/cnf-update-db: not found Reading package lists... Done E: Problem executing scripts APT::Update::Post-Invoke-Succes 'if /usr/bin/test -w /var/lib/command-not-found -a -e /usr/lib/cnf-update-db &gt; /dev/null; fi' E: Sub-process returned an error code   I am relativeley new to Linux so I have no clue how can I fix this. Any idea? Even to restore defult configurations/settings?  Thank you very much!
56192
When I try to save something or rename a file/folder it say this error " Read-only file system" or run something as root in the terminal it say this error  sudo: unable to open /var/lib/sudo/"My User Name"/0: Read-only file system  W: Not using locking for read only lock file /var/lib/dpkg/lock E: Unable to write to /var/cache/apt/   E: The package lists or status file could not be parsed or opened.   When I make a Folder the error dialog in the details with Nautilus is this:    Error creating directory: Read-only file system   I would show you I picture of it but it isn't even letting my save onto my flash drive. Please help me.
121536
I am having dependency problems, whenever I do an apt-get install, I get this error message:    I already tried:   apt-get clean, update, upgrade, install -f dpkg --configure -a   What should I do now?
64462
I'm using Ubuntu 15.10 guest on VMWare Player (7.1.3 build-3206955), with Windows 10 as the host OS. I'm able to use Firefox to browse the web inside the guest, however I'm unable to use apt on the terminal. Whenever i invoke the command sudo apt-get update, it gets stuck at 0% [connecting to in.archive.ubuntu.com], finally failing. Also, using sudo apt-get install &lt;package&gt; always results in the package not even being found. On the other hand, using the same commands with the -E flag on sudo makes them work. Can somebody explain what's happening here?  EDIT: I forgot to add that i'm using multiple internet connections; one with proxy and one without. Regular sudo works on the one without proxy but not on the one with it.
41650
I have used the following command to install android studio to Ubuntu:   sudo apt-get install android-studio    However, the following message appears :  E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.    What is the problem and how to solve it ?
45286
Strange thing I have here, when apt is locked by something. Respectively, the error codes don't match up. apt update seems to always return success 0, whereas apt-get update returns a proper error code.  vlastimil@vb-nb-mint ~/Development/bash $ sudo apt-get update Reading package lists... Done E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/  vlastimil@vb-nb-mint ~/Development/bash $ echo $? 100  vlastimil@vb-nb-mint ~/Development/bash $ sudo apt update Reading package lists... Done E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/  vlastimil@vb-nb-mint ~/Development/bash $ echo $? 0   apt's location:  vlastimil@vb-nb-mint ~/Development/bash $ which apt /usr/local/bin/apt   apt's version:  vlastimil@vb-nb-mint ~/Development/bash $ apt-show-versions apt apt:amd64/xenial-updates 1.2.12~ubuntu16.04.1 uptodate   I originally wanted to use apt for the manual upgrade script, but this changes the situation. Does someone understand error codes and such in order to help me with this?
15610
I need to enable scroll lock so I can toggle lights on my keyboard. This works on Arch.Funny thing it doesn't work on Ubuntu.    $ xmodmap -e ‘add mod3 = Scroll_Lock’ xmodmap:  unknown command on line commandline:1 xmodmap:  unable to open file 'mod3' for reading xmodmap:  unable to open file '=' for reading xmodmap:  unable to open file 'Scroll_Lock’' for reading xmodmap:  4 errors encountered, aborting.
38144
Just for curiosity, sometimes while installing software throught apt-get install software_name the terminal prompt me for a confirmation "type Yes or No", but not allways.  I dont mean the sudo password prompt, but the message "Will be downloaded and configrated XXX Kb, continue?" (or something similar)  Why?
1521
I was running an upgrade with the apt-get command, and it was taking an exceptionally long time because half way through my ISP hit me in the face with their fair usage policy.   After sitting outside &amp; watching the rain for awhile my electronics regained consciousness, so I went back to complete the upgrade and my terminal scolds me with   "E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem."   The last bit of legible info was all this:  Installing (ri/RDoc) documention for (stuff and such) ERROR:  Could not find a valid gem 'watobo-0.9.8.724.gem' (&gt;= 0) in any repository rm: cannot remove `watobo-0.9.8.724.gem': No such file or directory  Setting up metasploit (4.3.0-bt1) ... Upgrading Pre-Existing Installation... /opt/metasploit/postgresql/scripts/ctl.sh : postgresql  (pid 1191) already running prosvc is running metasploit is running [*] [*] Attempting to update the Metasploit Framework... [*]   So on it goes for miles, talking about gem caches, rubies, &amp; stuff I wish I had. All up until:  A    lib/gemcache/ruby/1.9.1/gems/state_machine-1.1.2/gemfiles/active_record-2.1.2.gemfile.lock   ...and there it has sat, all night.    If I stop it, will I still get the dpkg error (on the off chance that I won't), or if so what do I need to to resume using apt-get commands and its Super Cow Powers?