如何在Debian下安装Webmin

http://teddysun.com/403.html


RSS订阅

如何在Debian下安装Webmin

Webmin 是广受欢迎的免费面板,由于习惯了此面板,所以换到 Debian 7 系统后,还是打算安装一下。在过程中出了不少错误,最终还是顺利安装完成。
下面记录一下出错信息及解决办法。
按照官方网站是安装教程,下载 deb 包然后使用 dpkg 命令安装,会有几个依赖包无法安装,从而导致出错。

方案一(会出错,无法安装)
下载最新版 deb 包:
http://www.webmin.com/download/deb/webmin-current.deb
安装:

dpkg --install webmin-current.deb

出错信息如下:

root@v5:~# dpkg --install webmin-current.deb
Selecting previously unselected package webmin.
(Reading database ... 22186 files and directories currently installed.)
Unpacking webmin (from webmin-current.deb) ...
dpkg: dependency problems prevent configuration of webmin:
 webmin depends on libnet-ssleay-perl; however:
  Package libnet-ssleay-perl is not installed.
 webmin depends on libauthen-pam-perl; however:
  Package libauthen-pam-perl is not installed.
 webmin depends on libio-pty-perl; however:
  Package libio-pty-perl is not installed.
 webmin depends on apt-show-versions; however:
  Package apt-show-versions is not installed.

dpkg: error processing webmin (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 webmin

官网给出的方案是,手动运行以下命令,但依然会出错。如下:

root@v5:~# apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libpam-runtime is already the newest version.
perl is already the newest version.
python is already the newest version.
openssl is already the newest version.
openssl set to manually installed.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 apt-show-versions : Depends: libapt-pkg-perl (>= 0.1.21) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

不死心,运行 apt-get -f install apt-show-versions 强制安装,依旧出错。

方案二(OK)
编辑 /etc/apt/sources.list 文件,在最末尾添加以下内容:

vi /etc/apt/sources.list
deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

安装 GPG key

cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc

再执行

apt-get update
apt-get install webmin

所有的依赖会自动解决。
搞定收工。

注:此法同样适用于 Ubuntu 下。

参考资料:
http://www.webmin.com/deb.html

Windows系统下安装dig命令

Shadowsocks Troubleshooting

已有 12 条评论

  1. abc  说:2015-3-21 18:28
    Google Chrome 41.0.2272.89 Google Chrome 41.0.2272.89  Mac OS X 10.10.3 Mac OS X 10.10.3

    有没有debian的一键安装包…用你的方法和官方教程安装后都进不去设置页面。

    • 秋水逸冰  说:2015-3-22 15:13
      Google Chrome 41.0.2272.101 Google Chrome 41.0.2272.101  Windows 7 x64 Edition Windows 7 x64 Edition

      这个也要一键安装?我用第二种方法就可以登录,默认是用 https 方式登录了。

      • abc  说:2015-3-28 12:13
        Google Chrome 41.0.2272.89 Google Chrome 41.0.2272.89  Mac OS X 10.10.3 Mac OS X 10.10.3

        我这死活不行…好多台服务器都测试了

        • 秋水逸冰  说:2015-3-28 22:53
          Google Chrome 41.0.2272.101 Google Chrome 41.0.2272.101  Windows 7 x64 Edition Windows 7 x64 Edition

          奇怪,我怎么从没遇到?
          你说的语焉不详,我也没法给你分析原因。

  2. sunload  说:2015-3-17 01:02
    Google Chrome 41.0.2272.76 Google Chrome 41.0.2272.76  Windows XP Windows XP

    秋水的站居然也支持https了,我竟然这么久都没发现。
    秋水的证书哪里弄的?多少美刀?
    CN = AlphaSSL CA – SHA256 – G2
    O = GlobalSign nv-sa
    C = BE

    • 秋水逸冰  说:2015-3-17 09:48
      Google Chrome 41.0.2272.89 Google Chrome 41.0.2272.89  Windows 7 x64 Edition Windows 7 x64 Edition

      额,这个证书当初买的很便宜,30 RMB 5年,泛域名(现在没有了,当初是促销)。因为连接速度和性能问题,默认没有开启 https 。

  3. 祥磊部落  说:2015-3-13 10:39
    Google Chrome 30.0.1599.101 Google Chrome 30.0.1599.101  Windows 7 x64 Edition Windows 7 x64 Edition

    看到webmin我就不知不觉的来了

  4. 0536  说:2015-3-13 09:00
    Google Chrome 40.0.2214.115 Google Chrome 40.0.2214.115  GNU/Linux x64 GNU/Linux x64

    能否写个youtube-dl下载播放列表的脚本啊

    • 秋水逸冰  说:2015-3-13 15:49
      Google Chrome 41.0.2272.89 Google Chrome 41.0.2272.89  Windows 7 x64 Edition Windows 7 x64 Edition

      这个 youtube-dl 本来就支持下载播放列表吧。本站有安装教程,搜索一下即可。

  5. 主机测评  说:2015-3-12 22:40
    Firefox 17.0 Firefox 17.0  Windows XP Windows XP

    不是说这面板比较消耗资源么?其实我自己没有用过这个面板,好像还有个叫啥webzuo还是什么的面板也功能停强大的,我懒得去折腾了继续vestacp,感觉足够我用了!

    • 秋水逸冰  说:2015-3-13 15:48
      Google Chrome 41.0.2272.89 Google Chrome 41.0.2272.89  Windows 7 x64 Edition Windows 7 x64 Edition

      Webmin 很好很强大的,一直使用至今。

    • sunload  说:2015-3-17 01:04
      Google Chrome 41.0.2272.76 Google Chrome 41.0.2272.76  Windows XP Windows XP

      sshd够用了,用啥webmin呢。耗资源,还不够安全。

发表评论

*

发表评论前,请滑动滚动条解锁

© 2013-2015 <a href="http://teddysun.com/" home"="" style="text-decoration: none; color: rgb(0, 102, 204); transition: color 0.2s; -webkit-transition: color 0.2s;">秋水逸冰 Powered by  WordPress &  DigitalOcean Theme by  Cople

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值