I ran this command : sudo apt-get install mysql-server and I got this as the output:      Reading package lists... Done     Building dependency tree            Reading state information... Done     The following additional packages will be installed:       libevent-core-2.1-6 mysql-server-5.7 mysql-server-core-5.7     Suggested packages:       mailx tinyca     The following NEW packages will be installed:       libevent-core-2.1-6 mysql-server mysql-server-5.7 mysql-server-core-5.7     0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.     Need to get 0 B/10.5 MB of archives.     After this operation, 92.9 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.7.     (Reading database ... 193811 files and directories currently installed.)     Preparing to unpack .../mysql-server-core-5.7_5.7.29-0ubuntu0.18.04.1_amd64.deb ...     Unpacking mysql-server-core-5.7 (5.7.29-0ubuntu0.18.04.1) ...     Selecting previously unselected package libevent-core-2.1-6:amd64.     Preparing to unpack .../libevent-core-2.1-6_2.1.8-stable-4build1_amd64.deb ...     Unpacking libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...     Selecting previously unselected package mysql-server-5.7.     Preparing to unpack .../mysql-server-5.7_5.7.29-0ubuntu0.18.04.1_amd64.deb ...     Unpacking mysql-server-5.7 (5.7.29-0ubuntu0.18.04.1) ...     Selecting previously unselected package mysql-server.     Preparing to unpack .../mysql-server_5.7.29-0ubuntu0.18.04.1_all.deb      Unpacking mysql-server (5.7.29-0ubuntu0.18.04.1) ...     Setting up libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...     Setting up mysql-server-core-5.7 (5.7.29-0ubuntu0.18.04.1) ...     Setting up mysql-server-5.7 (5.7.29-0ubuntu0.18.04.1) ...     /var/lib/dpkg/info/mysql-server-5.7.postinst: line 191: /usr/share/mysql-common/configure-symlinks: No such file or directory     dpkg: error processing package mysql-server-5.7 (--configure):      installed mysql-server-5.7 package post-installation script subprocess returned error exit status 127     dpkg: dependency problems prevent configuration of mysql-server:      mysql-server depends on mysql-server-5.7; however:       Package mysql-server-5.7 is not configured yet.  dpkg: error processing package mysql-server (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                           Processing triggers for libc-bin (2.27-3ubuntu1) ... Processing triggers for systemd (237-3ubuntu10.39) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Processing triggers for ureadahead (0.100.0-21) ... Errors were encountered while processing:  mysql-server-5.7  mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)   I tried removing and installing again but it showed the same error I followed the these steps too but was of no use sudo dpkg --configure mysql-server-5.7 and also tried sudo apt-get upgrade.
123083
I have a website server on Ubuntu server 18.04 with apache and mysql. The database stopped for no apparent reason. I just did a restart of mysql server to solve the issue but after a simple update I got some errors on mysql-server package. The update was for other packages and not mysql-server package. Mysql still stops at least once a week and each time I have to restarts the mysql-server.  Can some one help me to understand the error please ?  Here the result of: dpkg --configure -a  Configure mysql-server-5.7 (5.7.23-0ubuntu0.18.04.1) ... /var/lib/dpkg/info/mysql-server-5.7.postinst: ligne 191: /usr/share/mysql-common/configure-symlinks: no file or folder  dpkg: erreur de traitement du paquet mysql-server-5.7 (--configure) : installed mysql-server-5.7 package post-installation script subprocess returned error exit status 127
45435
Alright, so due to problems connecting to a wifi network on the ubuntu server distribution, i want to install the neccesary packages for a lamp, mail and ssh server on an ubuntu desktop 14.04 lte distribution(i am able to connect to the internet with the desktop version).  what should i install from the command line?  Thanks in advance!
3500
So I can run on one machine:  dpkg --get-selections '*' &gt; selection.txt   On another machine:  dpkg --set-selections &lt; selection.txt   ... followed by either of the following:  aptitude install apt-get -u dselect-upgrade   ... to install the packages that.  However, it appears that some information gets lost in the process, such as whether a package (say xyz) got installed automatically as dependency of another package (abc). You can see that whenever you do something like apt-get --purge remove abc. On the original machine you would be notified that package xyz was installed as dependency of abc and that you may use apt-get autoremove to get rid of it.  Now I am aware of deborphan and debfoster, but they're cumbersome to use given the (simple) task at hand.  It seems saving and restoring the selections as shown above is not sufficient to restore the subtle dependencies of installed packages.  Is there a way to back up the complete set of metadata for package management and restore it then in its entirety?
54159
I have successfully installed some packages using the command line 'sudo apt-get install packagename' when I have known in advance that those packages are available.  But how can I search for or get a list of what is available in the repositories?
72208
I am pretty new to linux and LAMP setup. I want to setup a LAMP environment with AP on one linux server and M on a different linux server. I have a hard time finding a relevant document with such a configuration.  I have done the following steps so far:  server1:  yum install -y httpd /sbin/service httpd restart yum install -y php php-mysql sed -i "s/Listen 80/#Listen 80/g" /etc/httpd/conf/httpd.conf yum install -y mod_ssl openssl /sbin/service httpd restart service iptables stop   I changed the ServerName in /etc/httpd/conf/httpd.conf from  #ServerName www.example.com:80   to  ServerName 172.32.35.14 (ip address of server1) /sbin/service httpd restart   server2:  yum install -y mysql-libs yum install -y mysql yum install -y perl-DBI yum install -y perl-DBD-MySQL yum install -y mysql-server /sbin/chkconfig mysqld on /sbin/service mysqld start mysql -u root  -e "CREATE USER 'mysqluser' IDENTIFIED by 'password'"  mysql -u root  -e "CREATE USER 'mysqluser'@'localhost' IDENTIFIED by 'password'" mysql -u root  -e "GRANT ALL PRIVILEGES ON *.* TO 'mysqluser'@'localhost' WITH GRANT OPTION" mysql -u root  -e "GRANT ALL PRIVILEGES ON *.* TO 'mysqluser'@'%' WITH GRANT OPTION" mysql -u mysqluser -p password -e "CREATE DATABASE mysqldb"  mysql -u mysqluser -p password mysqldb &lt; /tmp/mysqlinstaller/world.sql service iptables stop   Then I had these post configuration steps:  On server 2, where my mysql is installed, I did the following:  bind-address = 172.32.35.14 (ip of server 1 where apache/php are installed) service mysql restart   But I am not able to establish a connection. Can you point out what I am missing and guide me please.
96856
I'm on an old Ubuntu version (Ubuntu 6.06.2 LTS Server) which isn't really supported any more. So the automatic updates don't work. I have ISPConfig installed to manage a few web sites.  What's the best course of action? I'd like to upgrade to something current, but I can't figure out how to go about doing this, given that the apt-get scripts don't really work any longer.
10760
My overall upgrade went well, but I am left with a critically lingering issue of mysql-server not being able to install itself, and nothing I am trying gets it to work.  This is the error I see when trying to install/reinstall it:  Setting up mysql-server-5.7 (5.7.11-0ubuntu6) ... Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details. invoke-rc.d: initscript mysql, action "start" failed. dpkg: error processing package mysql-server-5.7 (--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.7; however:   Package mysql-server-5.7 is not configured yet.  dpkg: error processing package mysql-server (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                    Processing triggers for systemd (229-4ubuntu4) ... Processing triggers for ureadahead (0.100.0-19) ... Errors were encountered while processing:  mysql-server-5.7  mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)   I've tried completely removing it, though doing so attempts to install MariaDB because of dependencies (?). Any suggestions on what I can do to fix this would be most welcome.  EDIT: Looks like I'm not the only one:
57613
I'd like to find out which packages  sudo apt-get build-dep &lt;package&gt;   would install (if I already got some dependencies installed, I'd also like to see those → so running or simulating the above is not enough). Command line preferred.
311
For  I need to install libpng12-0 package on the Ubuntu 19.10 system.  I know that it is available .  So I have decided to download this package manually and install it by hand.  On previous Ubuntu versions (such as 18.04 LTS) this trick ends with success, but here on 19.10 it fails in very strange way:   wget http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb sudo apt-get install ./libpng12-0_1.2.54-1ubuntu1.1_amd64.deb  0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/116 kB of archives. After this operation, 285 kB of additional disk space will be used. Get:1 /home/user/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb libpng12-0 amd64 1.2.54-1ubuntu1.1 [116 kB] Selecting previously unselected package libpng12-0:amd64. (Reading database ... 212864 files and directories currently installed.) Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1.1_amd64.deb ... Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1.1) ...  dpkg: error processing archive /home/user/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb (--unpack):  unable to install new version of '/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory No apport report written because the error message indicates an issue on the local system                                                                                          Errors were encountered while processing:  /home/user/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   What is wrong here? How can I get libpng12-0 installed on Ubuntu 19.10 system?    Note: the same happens on 19.04, but it is near EOL.
106457
The whole update process seems somewhat confusing to me.  I can understand the need to run sudo apt-get update prior to installing another package, but, what is the difference in running update from the command-line and using the Synaptic package manager for updates and/or the the Auto-updater.  If there is no difference, why do we have all three?
2739
I'm trying to install  on my Ubuntu box (11.04). The website has a Ubuntu .deb available for download (for 10.10 and 10.04 so I chose 10.10).   However,   sudo dpkg -i mysql-workbench-gpl-5.2.34-1ubu1010-amd64.deb   yields:  (Reading database ... 194069 files and directories currently installed.) Preparing to replace mysql-workbench-gpl 5.2.34-1ubu1010 (using mysql-workbench-gpl-5.2.34-1ubu1010-amd64.deb) ... Unpacking replacement mysql-workbench-gpl ... dpkg: dependency problems prevent configuration of mysql-workbench-gpl:  mysql-workbench-gpl depends on libctemplate0; however:   Package libctemplate0 is not installed.  mysql-workbench-gpl depends on libpython2.6 (&gt;= 2.6); however:   Package libpython2.6 is not installed.  mysql-workbench-gpl depends on libzip1 (&gt;= 0.8); however:   Package libzip1 is not installed.  mysql-workbench-gpl depends on python-paramiko; however:   Package python-paramiko is not installed.  mysql-workbench-gpl depends on python-pysqlite2; however:   Package python-pysqlite2 is not installed. dpkg: error processing mysql-workbench-gpl (--install):  dependency problems - leaving unconfigured Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf.index... Processing triggers for desktop-file-utils ... Processing triggers for python-gmenu ... Rebuilding /usr/share/applications/desktop.en_US.utf8.cache... Processing triggers for python-support ... Errors were encountered while processing:  mysql-workbench-gpl   My question is, is there a way to tell dpkg to automatically fetch missing dependencies, or do I need to manually apt-get install missing packages like libctemplate0 and  libpython2.6?   (Or alternatively, is there some other way to get MySQL Workbench easily up &amp; running?)
44572
I'm trying to install the package LaTeXila, and the output looks like this:  $ sudo apt-get install latexila --no-install-recommends Reading package lists... Done Building dependency tree        Reading state information... Done The following extra packages will be installed:   latexila-data latexmk luatex tex-common texlive-base texlive-binaries   texlive-common texlive-doc-base texlive-latex-base Suggested packages:   rubber texlive-latex-extra debhelper Recommended packages:   texlive texlive-latex-recommended texlive-luatex lmodern   texlive-latex-base-doc The following NEW packages will be installed:   latexila latexila-data latexmk luatex tex-common texlive-base   texlive-binaries texlive-common texlive-doc-base texlive-latex-base 0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded. Need to get 29.3 MB of archives. After this operation, 74.5 MB of additional disk space will be used. Do you want to continue [Y/n]?   I don't want to install the texlive packages. I've installed texlive manually from . Any suggestions?
117397
I went through my usual server package upgrades today and discovered that ppa:ondrej/php5-5.6 has been depreciated and we must now upgrade to ppa:ondrej/php.  The basic provided instructions are to run:  sudo add-apt-repository ppa:ondrej/php   And then:  sudo apt-get update sudo apt-get upgrade --show-upgraded   Looking at the new repository, the names do not seem to completely line up so I think I'll need to do some apt-get installs to get all the right packages installed.  It also appears that the sub-packages (ie php-gd) will install for all php versions and may also install php 5.5 and php 7.0 ()  So my question is, what is the cleanest way to "switch" ppas and clean up the existing packages considering that this is a production server?  Should I try to remove all the packages installed from the previous PPA and/or remove the PPA from my system?  It's not yet in the main page for the PPA but the upgrade message gave deprecation as June 2016 so it's not a very long timeline to rebuild our server image.  I did find this page, which provides instructions for switching out the PHP version apache uses:
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?
35457
I used apt install mysql-server to install MySQL on Ubuntu 16.04 but during the installation, it did not ask for root password.  After installation I got ERROR 1045 when I tried to login as root and mysql_secure_installation threw the same error. I purged and autoremoved then reinstalled but it does not work.  How could i fix this? Can I set the root password if I didn't set it during installation?  This is my installation log:   The following additional packages will be installed:   libaio1 mysql-client-5.7 mysql-client-core-5.7 mysql-server-5.7   mysql-server-core-5.7 Suggested packages:   mailx tinyca The following NEW packages will be installed:   libaio1 mysql-client-5.7 mysql-client-core-5.7 mysql-server mysql-server-5.7   mysql-server-core-5.7 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/17,9 MB of archives. After this operation, 160 MB of additional disk space will be used. Do you want to continue? [Y/n] y Preconfiguring packages ... Selecting previously unselected package libaio1:amd64. (Reading database ... 227144 files and directories currently installed.) Preparing to unpack .../libaio1_0.3.110-2_amd64.deb ... Unpacking libaio1:amd64 (0.3.110-2) ... Selecting previously unselected package mysql-client-core-5.7. Preparing to unpack .../mysql-client-core-5.7_5.7.12-0ubuntu1_amd64.deb ... Unpacking mysql-client-core-5.7 (5.7.12-0ubuntu1) ... Selecting previously unselected package mysql-client-5.7. Preparing to unpack .../mysql-client-5.7_5.7.12-0ubuntu1_amd64.deb ... Unpacking mysql-client-5.7 (5.7.12-0ubuntu1) ... Selecting previously unselected package mysql-server-core-5.7. Preparing to unpack .../mysql-server-core-5.7_5.7.12-0ubuntu1_amd64.deb ... Unpacking mysql-server-core-5.7 (5.7.12-0ubuntu1) ... Selecting previously unselected package mysql-server-5.7. Preparing to unpack .../mysql-server-5.7_5.7.12-0ubuntu1_amd64.deb ... Unpacking mysql-server-5.7 (5.7.12-0ubuntu1) ... Selecting previously unselected package mysql-server. Preparing to unpack .../mysql-server_5.7.12-0ubuntu1_all.deb ... Unpacking mysql-server (5.7.12-0ubuntu1) ... Processing triggers for libc-bin (2.23-0ubuntu3) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for systemd (229-4ubuntu4) ... Processing triggers for ureadahead (0.100.0-19) ... Setting up libaio1:amd64 (0.3.110-2) ... Setting up mysql-client-core-5.7 (5.7.12-0ubuntu1) ... Setting up mysql-client-5.7 (5.7.12-0ubuntu1) ... Setting up mysql-server-core-5.7 (5.7.12-0ubuntu1) ... Setting up mysql-server-5.7 (5.7.12-0ubuntu1) ... update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode Checking if update is needed. This installation of MySQL is already upgraded to 5.7.12, use --force if you still need to run mysql_upgrade Setting up mysql-server (5.7.12-0ubuntu1) ... Processing triggers for libc-bin (2.23-0ubuntu3) ...
8139
I have a Drupal site 8.6.10 on an Ubuntu server 18.04 with MySQL 5.7.25  I want to update MySQL to version 8.0  Here are the steps I followed :   I backed up my database. I uninstalled MySQL from my server with the commands :  $ sudo systemctl stop mysql $ sudo apt remove mysql-* $ sudo apt purge mysql-* $ sudo apt autoremove $ sudo dpkg -l | grep mysql | grep ii  I added the repository with the command :  $ wget https://repo.mysql.com//mysql-apt-config_0.8.12-1_all.deb  I installed the package with the command :  $ sudo dpkg -i mysql-apt-config_0.8.12-1_all.deb            My problem :   I install MySQL with the command :  $ sudo apt update $ sudo apt install mysql-server    When I do step 5, it installs MySQL 5.7 why does not it install version 8 ?
77644
When doing an apt-get upgrade I sometimes get a message saying "The following packages have been kept back". For example:  $ sudo apt-get upgrade                                                                                                 Reading package lists... Done                                                                                                           Building dependency tree                                                                                                                Reading state information... Done                                                                                                       The following packages have been kept back:                                                                                               linux-headers-server linux-image-server linux-server                                                                                  0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.   What does this mean exactly? Obviously the packages have been held back and not installed, but why?  The follow-on question would be: how does one upgrade these kept back packages?