Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Couldn't find package libapache2-mod-wsgi

I have developed a website in Django, and now it must go into production. This i want to do with mod_wsgi and apache2. Unfortunately i get the error 'Couldn't find package libapache2-mod-wsgi' when running the next command:

sudo apt-get install libapache2-mod-wsgi

I am using apache2 on ubuntu server kermic(9.10).

I will enter my sources.list also:

deb http://archive.ubuntu.com/ubuntu karmic main
deb http://security.ubuntu.com/ubuntu karmic-security main

Does somebody know what the problem is?

like image 820
Timo Avatar asked Mar 18 '26 22:03

Timo


2 Answers

On newer linux ditro libapache2-mod-wsgi may not be available as it relates to none existing dependencies like Python 2
Try

sudo apt-get install libapache2-mod-wsgi-py3
like image 188
tomasz74 Avatar answered Mar 22 '26 16:03

tomasz74


On my Ubuntu box:

apt-cache search libapache2-mod-wsgi

says

libapache2-mod-wsgi - Python WSGI adapter module for Apache

So the package is obviously there. It's in the universe repository (as per package details). Try to update your package list with

sudo apt-get update

Then run again

sudo apt-get install libapache2-mod-wsgi
like image 25
Gregory Pakosz Avatar answered Mar 22 '26 17:03

Gregory Pakosz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!