我尝试通过该apt-get
方法安装 webmin。然后我尝试重新安装它,因为我弄乱了配置而没有备份它。所以我删除了它,然后尝试安装它。我的完整日志:
root@278420-1484:~# apt-get install webmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
webmin
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/15.2 MB of archives.
After this operation, 161 MB of additional disk space will be used.
(Reading database ... 37754 files and directories currently installed.)
Preparing to unpack .../archives/webmin_1.820_all.deb ...
Port 10000 is already in use
dpkg: error processing archive /var/cache/apt/archives/webmin_1.820_all.deb (--unpack):
subprocess new pre-installation script returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/webmin_1.820_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@278420-1484:~#
我已经尝试过apt-get clean
,apt-get update
以及我在互联网上找到的其他方法,但都不起作用。请帮帮我。
答案1
某个进程正在监听您系统上的 TCP 端口 10000,这意味着其他程序(如 Webmin)无法同时监听同一端口。不幸的是,如果 Webmin 的安装程序脚本无法监听该端口,它将中断(我认为即使安装的服务无法运行,安装程序也应该会成功)。最好的解决方案是找出正在监听端口 10000 的程序,然后从那里开始。