3

I use Ubuntu 16.04 and had done various changed in my system in the last day. I can't exactly show all these processes here but I do ask for an advice on this particular issue, to understand what's going on:

When executing:

sudo apt-get install phpmyadmin

I get:

E: Unable to locate package phpmyadmin

I didn't find any helpful solution on the Web.


Update 1 - Update for Arduino Sentinel:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 phpmyadmin : Depends: php but it is not installable
              Depends: php-mbstring
              Depends: libjs-sphinxdoc (>= 1.0) but it is not installable
              Depends: dbconfig-mysql but it is not installable or
                       dbconfig-no-thanks but it is not installable or
                       dbconfig-common (< 2.0.0) but it is not installable
              Depends: php-php-gettext but it is not installable or
                       php-gettext (<= 1:7.0) but it is not installable
              Recommends: php-gd
              Recommends: php-bz2 but it is not installable
              Recommends: php-tcpdf but it is not installable
E: Unable to correct problems, you have held broken packages.

Update 2 - Update for Arduino Sentinel:

Package aptitude is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

2 Answers 2

2

Before installing phpmyadmin, you should be using a non-root user with sudo privileges, as described in Here, also you should have a complete LAMP (Linux, Apache, MySQL, and PHP) installation on. If you don't,then you can Follow this guide on installing a LAMP stack on Ubuntu

If everything is okay,add this ppa

sudo add-apt-repository ppa:phpmyadmin/ppa
sudo apt-get update

then install phpmyadmin

sudo apt-get install phpmyadmin
8
  • Sadly it doesn't help. I've updated the question with stdout.
    – user423047
    Jan 1, 2017 at 3:29
  • i would suggest you use aptitude package manager as it will suggest easy solution to fix the unmet dependencies problem ,install via apt sudo apt-get install aptitude then install phpmyadmin sudo aptitude install phpmyadmin and choose a go solution suggest to fix your problem Jan 1, 2017 at 3:33
  • It seems my system is broken becasue apt-get install aptitude can't be installed.
    – user423047
    Jan 1, 2017 at 3:45
  • run this commands sudo dpkg --configure -a sudo apt-get install -f and try again Jan 1, 2017 at 3:48
  • Updated the question.
    – user423047
    Jan 1, 2017 at 3:55
1

You require php, apache2, mysql-server installed

sudo apt-get install apache2 php mysql-server

Then you need to add the repository

sudo add-apt-repository ppa:phpmyadmin/ppa

Then you need to update the package list:

sudo apt update

Then you can install:

sudo apt install phpmyadmin

You must log in to answer this question.