johnbmcdonald's picture

I am not sure where to begin to appoach this issue. I want to install phpmyadmin on my turnkey lamp box.
I thought I had found a good place to start, but no so..
Can someone point me in the right direction (docs, howto, faq etc)  for making this work?


root@lamp:/usr/share# sudo apt-get install phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package phpmyadmin
root@lamp:/usr/share#

 

Thanks for your help

john


 

Forum: 
Liraz Siri's picture

A binary package for phpmyadmin is in the Ubuntu universe repository, but you need to uncomment it in /etc/apt/sources.list first and then update apt:
cd /etc/apt
sed -i '/universe/ s/^#//' sources.list
apt-get update
apt-get install phpmyadmin
We've decided to enable the universe repository by default in future releases to prevent this kind of situation.

In the future, if you want to find out which repository a package is in, try searching packages.ubuntu.com.

You might also want to consider installing phpmyadmin from source, you can read more about that here.

johnbmcdonald's picture

:)
dalton's picture

I tried to follow these directions and got an error message when I tried to modify the sources.list file... because it doesn't exist in that directory any more! There is now a directory called sources.list.d in /etc/apt and that's where the sources.list file lives.
cd /etc/apt/sources.list.d
sed -i '/universe/ s/^#//' sources.list
apt-get update
apt-get install phpmyadmin
Is this correct?
Alon Swartz's picture

All appliances released after 2008.11.04 use /etc/apt/sources.list.d (#LP293685)
Thanks for mentioning it.

Add new comment