TurnKey Linux Virtual Appliance Library

how do I install phpmyadmin?

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


 

Liraz Siri's picture

You need to enable universe repository

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.

Thanks Liraz

:)

Updated for Ubuntu 8.04.1?

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

yep, thats correct

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

Thanks man!!

Thanks man!!

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)