Unable to download MySQLdb - "no installation candidate"

Asked by wad11656

I'm trying to install MySQLdb so I can run a Python script that connects to a MySQL database.

I tried running

$ sudo apt-get install python-pip python-dev libmysqlclient-dev

per the instructions on this page: https://www.tutorialspoint.com/python/python_database_access.htm

but get

"Reading package lists... Done
Building dependency tree
Reading state information... Done

Package libmysqlclient-dev 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

Package python-dev 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
However the following packages replace it:
    python

E: Package 'python-dev' has no installation candidate
E: Package 'libmysqlclient-dev' has no installation candidate"

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
wad11656
Solved:
Last query:
Last reply:
Revision history for this message
wad11656 (wad11656) said :
#1

I just updated my /etc/apt/sources.list using an Ubuntu list regenerator and was able to install the packages