I accidentally stopped the installation of mysql while setting the root password and now I can't, neither open the application, nor uninstall it. sudo apt-get remove --purge mysql*  returns E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 10071 (apt-get) N: Be aware that removing the lock file is not a solution and may break your system. E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?  can anyone please help me?
5068
I'm trying to run this command in the terminal:  sudo apt install software-properties-common   This is the error message I get:  E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)   E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend),     is another process using it?
88863
Is there any difference between     sudo apt-get purge &lt;package-name&gt;   and    sudo apt-get remove &lt;package-name&gt;     ?  I often see people recommend one or the other.  In other words, what does apt-get purge remove that apt-get remove doesn't?
108383
using this command I changed root password   mysqladmin -u root password fg$pkh@567fghu   And now I cant access mysql. Is this because mysql parse the chars other than what I expect?  Also I completely removed and installed mysql and Problem is extant. How do I remove mysql so that I get rid of password?
71453
When I start the Ubuntu software centre, it says I cannot do anything until the package catalog is repaired. However, repairing fails.  I ran sudo apt-get -f install and found the problem to be:  mysql-server-5.5 depends on mysql-server-core-5.5 (= 5.5.24-0ubuntu0.12.04.1); however:   Version of mysql-server-core-5.5 on system is 5.5.28-0ubuntu0.12.04.2.   So, the question is, how do I install that version and resolve the dependency problem?
37982
Please help me: I added this repositories manually and i cant remove them  echo 'deb http://download.opensuse.org/repositories/home:/Horst3180/Debian_8.0/ /' &gt; /etc/apt/sources.list.d/vertex-theme.list  wget http://download.opensuse.org/repositories/home:Horst3180/Debian_8.0/Release.key   I tried to use removing the key using apt-key list and then removing using the id, it successfully removed the key but when i use apt update i get this output:  W: GPG error: http://download.opensuse.org/repositories/home:/Horst3180/Debian_8.0  Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5A7D1D38BEB6D886 E: The repository 'http://download.opensuse.org/repositories/home:/Horst3180/Debian_8.0  Release' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   I just want to be able to run apt update normally like when a fresh OS install was made
8029
I've searched the net for such information and found different command lines, like these ones:  sudo apt-get remove application sudo apt-get remove application*  sudo apt-get remove --purge application sudo apt-get remove --purge application*  sudo apt-get purge application sudo apt-get purge application*   So, what is the correct way? Is it necessary to use that "*"?  After that, I also found these commands:  sudo updatedb sudo locate application sudo rm -rf (file/folder name)
777
This seems to be a chicken-egg problem. The most common task using sudo is installing and removing software.  sudo apt-get purge &lt;appname&gt;   But sudo itself can be removed.  sudo apt-get purge sudo # Do not run this command on production computers!   This is where the fun comes  ubuntu@ubuntu:~$ sudo bash: /usr/bin/sudo: No such file or directory   Although it's obvious that no person in his right mind will purge sudo (other than me), someone can be fooled to run this command (not directly, in its hex mode, or whatever it's called) or a person could SSH in disguised as tech guru and do the mess.  So is there a way of reinstalling sudo?
101024
I'm trying to update to node 7.x through the terminal on my raspberry pi and I keep encountering this error. The command I'm using is:  sudo curl -sL https://deb.nodesource.com/setup_7.x | bash -   Running this command as root doesn't work so I tried to see if apt-get was being used by any other processes.   ps aux | grep apt pi        1295  0.0  0.1   4272  1848 pts/0    S+   06:24   0:00 grep --color=auto apt   This is all I get. Ultimately, (although it was initially advised not to do so), I tried removing the files and running the command again.  sudo rm /var/lib/apt/lists/lock &amp;&amp; sudo rm /var/lib/dpkg/lock   Now neither one of these files no longer exists and I still receive the same error when trying to use curl. I also tried to kill that one process and I still get the error.
5192
I am trying to delete several rows from a MySQL 5.0.45 database:  delete from bundle_inclusions;   The client works for a while and then returns the error:  Lock wait timeout exceeded; try restarting transaction   It's possible there is some uncommitted transaction out there that has a lock on this table, but I need this process to trump any such locks.  How do I break the lock in MySQL?
35229
I have just booted my clean Ubuntu 18.04 LTS VM and tried to install some application with sudo apt install.  But got error message:     E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)       E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?   What process created the /var/lib/dpkg/lock-frontend file in Ubuntu? How to gently stop it and take manual control on APT?
3846
In the past there has been sudo /etc/init.d/mysql reset-password, (1) is manually restarting and setting the password with an sql command again required? (2)  (1)  (2)
44441
I accidently removed apt-get from my Debian system by issuing:  dpkg --force-depends --purge apt   How can I reinstall it?
5583
In my server, everytime I try to access MySQL I get the error:        Access denied for user 'root'@'localhost' (using password: NO)   when I try mysqladmin -u root -p password I get        Access denied for user 'root'@'localhost' (using password: YES)   How can I access MySQL in my Ubuntu server 12.04?
106407
I'm working on Xubuntu 15.04. I already installed the MariaDB-Server on various systems and was always asked for a root password during installation. This time, however, I don't remember being asked for the password. When I try to login without a password (or a blank password), I get the Access denied for user 'root'@'localhost' error.  I tried uninstalling the package completely by  sudo apt-get remove mariadb-server sudo apt-get purge mariadb-server   When I reinstalled, I still didn't get asked for the root password.  I tried the mysqld --skip-grant-tables approach from  . I can modify the password for the root user in the mysql database - at least the hash value changes - but I still cannot login with the new password after a restart of the mysql-server. I still get the same error.  The user debian-sys-maint does not exist. So, I cannot use it to fix anything.   Any ideas what else I could try?
34562
Last night I was updating my Ubuntu 10.04 to either 11.04 or 12.04 (I'm not entirely sure which one it was, but I think it was 11.04) and I left it overnight to finish. When I came down in the morning, I noticed that the computer hadn't barely begun installing the updates! The update thing said that my computer was on the installation step, but it was still preparing the libc bin (or whatever its called) . It's like the first part of the step installing the upgrades. So, I stupidly restarted the computer, and when it rebooted, I got five options on a purple screen:  Ubuntu, with Linux 3.0.0-28-generic Ubuntu, with Linux 3.0.0-28-generic (recovery mode) Previous Linux versions Memory test (memtest86+) Memory test (memtest86+, serial console 115200)   Long story short, not matter which way I enter Ubuntu to try and reinstall the updates using the root thing (it's like terminal) after I enter sudo apt-get update it basically said it failed to fetch every url link, and it then says:  W: Some index files have failed to download. They have been ignored, or old ones used instead. W: Not using locking for read only lock file /var/lib/dpkg/lock E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.   So, I entered sudo dpkg --configure -a, and it says:  dpkg: error: unable to access dpkg status area: Read-only file system"   I'm left like wtf, and I really just some guidance here. I just got this laptop, and I can not afford a new one if I broke this one.
29111
I ran into some problems installing a package with apt. The terminal hung up during an install and I saw no other choice but to close the terminal. The problem, however, is that I can't seem to solve the issues that this has caused.   As is typical, I 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?   This gets me nowhere and I'm locked out until I run sudo dpkg --configure -a. Makes sense. However, this process spits the following out and then hangs on the last line:  Setting up virtualbox-dkms (5.2.10-dfsg-6) ... Removing old virtualbox-5.2.10 DKMS files...  -------- Uninstall Beginning -------- Module:  virtualbox Version: 5.2.10 Kernel:  4.15.0-23-generic (x86_64) -------------------------------------  Status: This module version was INACTIVE for this kernel. depmod...  DKMS: uninstall completed.  ------------------------------ Deleting module version: 5.2.10 completely from the DKMS tree. ------------------------------ Done. Loading new virtualbox-5.2.10 DKMS files... Building for 4.15.0-23-generic Building initial module for 4.15.0-23-generic   A typical solution I've read is that you need to fix the broken packages. When I try to fix the broken packages (sudo apt install -f), the system also hangs on the same line, although the output is different:  Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up virtualbox-dkms (5.2.10-dfsg-6) ... Removing old virtualbox-5.2.1  0 DKMS files...  ------------------------------ Deleting module version: 5.2.10 completely from the DKMS tree. ------------------------------ Done. Loading new virtualbox-5.2.10 DKMS files... Building for 4.15.0-23-generic Building initial module for 4.15.0-23-generic   I am unable to get out of it unless I kill the process. This I do by checking what is currently running related to apt (ps aux |grep apt), and then I kill the relevant processes with sudo kill -9 process_number_here.  If I try to run things after that, it tells me I still need to reconfigure dpkg.  I tried looking around for more solutions to dpkg and all I really see is the nuclear option:  sudo rm /var/lib/dpkg/lock sudo rm /var/cache/apt/archives/lock sudo rm /var/lib/apt/lists/lock   I also delete the files in /var/lib/dpkg/updates because when I did some digging one of the files inside had the exact same text as the above long output... but I fully admit to being out of my league here and I don't know what to do.   Taking a look at the error messages, I recognize that it hangs on building something related to the kernel. But I have no idea where to even start solving that. Any help is appreciated. My system is ubuntu 18.04
3510
I have read a number of the posts here and they all state to run the following commands:   Apt-get -f remove ** apt-get update apt-get upgrade apt-get -f install **   I have seen these in various order etc, and none are resolving, my issue. No matter what I try I get:    apt-get -f install mysql-server                              Reading package  lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: mysql-server-5.5 mysql-server-core-5.5 Suggested packages: tinyca mailx The following NEW packages will be installed: mysql-server mysql-server-5.5 mysql-server-core-5.5 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/14.9 MB of archives. After this operation, 53.0 MB of additional disk space will be used. Do you want to continue [Y/n]? y Preconfiguring packages ... Selecting previously unselected package mysql-server-core-5.5. (Reading database ... 83134 files and directories currently installed.) Unpacking mysql-server-core-5.5 (from .../mysql-server-core-5.5_5.5.29- 0ubuntu0.12.04.1_amd64.deb) ... Selecting previously unselected package mysql-server-5.5. Unpacking mysql-server-5.5 (from .../mysql-server-5.5_5.5.29-0ubuntu0.12.04.1_amd64.deb)  ... Selecting previously unselected package mysql-server. Unpacking mysql-server (from .../mysql-server_5.5.29-0ubuntu0.12.04.1_all.deb) ... Processing triggers for man-db ... Processing triggers for ureadahead ... Setting up mysql-server-5.5 (5.5.29-0ubuntu0.12.04.1) ... Setting up mysql-server-5.5 (5.5.29-0ubuntu0.12.04.1) ... invoke-rc.d: initscript mysql, action "start" failed. invoke-rc.d: initscript mysql, action "start" failed. dpkg: error processing mysql-server-5.5 (--configure):  subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of mysql-server:  mysql-server depends on mysql-server-5.5; however:   Package mysql-server-5.5 is not configured yet. dpkg: error processing mysql-server (--configure): No apport report written because the error message indicates its a followup error from a  No apport report written because the error message indicates its a followup error from a  previous failure.                    Errors were encountered while processing:  mysql-server-5.5  mysql-server   I have tried several things over the past week and cannot get this to resolve, any assistance would be appreciated. I did notice the message:  Package mysql-server-5.5 is not configured yet.  and i have yet to get this configured so I am working on that aspect. Any other assistance will be very appreciated.