Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How do I upgrade MySQL to 5.5, am I best off waiting for it to be available through apt-get?

This fetches revision 5.1 only:

  sudo apt-get install mysql-server

but the latest community server version is 5.5.9

share|improve this question

migrated from Feb 14 '11 at 17:45

This question came from our site for computer enthusiasts and power users.

marked as duplicate by jokerdino, Nitin Venkatesh, Thomas Ward, Luis Alvarado, Takkat Nov 13 '12 at 15:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

please look here:… – guenter Nov 12 '11 at 17:41

apt-get is a tool specific to debian-based linux distributions, and will only download packages from locations specified in /etc/apt/source.lst.

To update to 5.5, you will either need to find a repository with the newer builds and add it to your sources.lst, or you'll have to manually download and install one of the packages from mysql's site.

share|improve this answer
@Andee - Any ideas on what that repository would be for mysql – Anonymous Feb 14 '11 at 14:55

You can download RPM package from MySQL download page and convert it using alien. Then you can install .deb package using "dpkg -i". Download RPM package (64bit or 32bit), and run following commands:

sudo apt-get install alien fakeroot
fakeroot alien MySQL-devel-5.5.9-1.linux2.6.i386.rpm
dpkg -i mysql-devel_5.5.9-2_i386.deb

That is better than installing from source code, as now files are tracked by dpkg (backend for apt, aptitude and other package managers in Ubuntu).

There is no PPA offering newest mysql-server for Ubuntu, at least I couldn't find it. 5.1 is considered as stable mysql, while 5.5 is "upstream version". There will be Ubuntu packages, but good question is when.

share|improve this answer