惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 聂微东
GbyAI
GbyAI
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 叶小钗
A
About on SuperTechFans
M
MIT News - Artificial intelligence
宝玉的分享
宝玉的分享
雷峰网
雷峰网
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Martin Fowler
Martin Fowler
Google DeepMind News
Google DeepMind News
博客园 - Franky
B
Blog RSS Feed
Y
Y Combinator Blog
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research

秋水逸冰

丽萨主机:双ISP家宽住宅IP VPS/CN2 GIA精品网/G口大带宽 | 秋水逸冰 Linux Kernel 6.18.x 编译版 | 秋水逸冰 思考未来人与 AI 的关系 | 秋水逸冰 3X-UI 面板安装和使用教程 | 秋水逸冰 Xray-UI 面板安装和使用教程 | 秋水逸冰 WCMP (Windows + Caddy + MariaDB + PHP) Nginx for Windows | 秋水逸冰 Aria2 for Windows | 秋水逸冰 Curl for Windows | 秋水逸冰 Wget for Windows | 秋水逸冰 Windows 11 Enterprise LTSC DD 镜像 Windows Server 2025 Datacenter DD 镜像 重新编译 curl 以支持 HTTP3 | 秋水逸冰 tiny10 和 tiny11 23H2 的 Windows DD 镜像 从 Apache httpd 切换到 Caddy2 LCMP (Linux + Caddy + MariaDB + PHP) Windows 11 Pro for Workstations 22H2 DD 镜像 Shadowsocks 编译版 by Teddysun | 秋水逸冰 适用于 UEFI 启动的多个 Windows 系统 DD 镜像 Linux Kernel 5.15.x 编译版 | 秋水逸冰 制作适用于 WSL 的任意 Linux 镜像 Windows 11 Pro for Workstations 21H2 DD 镜像 Windows 10 Enterprise LTSC DD 镜像 Linux Kernel 5.14.x 编译版 | 秋水逸冰 Linux Kernel 5.13.x 编译版 | 秋水逸冰 Windows Server 2022 Datacenter DD 镜像 在 Windows 10 上安装 Rocky Linux 系统 Linux Kernel 5.12.x 编译版 | 秋水逸冰 Linux Kernel 5.11.x 编译版 | 秋水逸冰 在 Windows 10 上安装 CentOS 系统
如何在Debian下安装Webmin | 秋水逸冰
秋水逸冰 · 2015-03-11 · via 秋水逸冰

技术 秋水逸冰 33806浏览 14评论

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

转载请注明:秋水逸冰 » 如何在Debian下安装Webmin