找不到包 libapache2-mod-wsgi
我已经用 Django 开发了一个网站,现在它必须投入生产。我想用 mod_wsgi 和 apache2 来做这件事。不幸的是,我在运行下一个命令时收到错误“无法找到包 libapache2-mod-wsgi”:
sudo apt-get install libapache2-mod-wsgi
我在 ubuntu 服务器 kermic(9.10) 上使用 apache2。
我也会输入我的sources.list:
deb http://archive.ubuntu.com/ubuntu karmic main
deb http://security.ubuntu.com/ubuntu karmic-security main
有人知道问题是什么吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
在较新的 Linux ditro 上,
libapache2-mod-wsgi
可能不可用,因为它与Python 2
等现有依赖项无关尝试
On newer linux ditro
libapache2-mod-wsgi
may not be available as it relates to none existing dependencies likePython 2
Try
在我的 Ubuntu 盒子上:
说
所以包显然在那里。它位于 Universe 存储库中(根据软件包详细信息)。尝试使用“
然后再次运行”更新您的软件包列表
On my Ubuntu box:
says
So the package is obviously there. It's in the universe repository (as per package details). Try to update your package list with
Then run again
对于此问题的更新版本,您应该输入以下命令:
For an updated version of this question you should type the command:
请务必启用(取消注释)Universe 存储库。默认情况下,Universe 存储库通常不会启用,而这正是 libapache2-mod-wsgi 所在的位置。
http://packages.ubuntu.com/karmic/libapache2-mod-wsgi
取消注释 Universe 行后,运行另一个 apt-get update,然后您应该能够安装该软件包。
Be sure to enable (uncomment) the Universe repositories. The Universe repos aren't usually enabled by default, and that's where libapache2-mod-wsgi lives.
http://packages.ubuntu.com/karmic/libapache2-mod-wsgi
Once you've uncommented the Universe lines, run another apt-get update, then you should be able to install the package.
您可以执行以下操作:
或
然后下一步:
并且
You can do:
or
And next:
And