删除 squid 和 iptables 后 sudo apt-get install 不起作用

删除 squid 和 iptables 后 sudo apt-get install 不起作用

apt-get update我在系统上运行和时遇到问题apt-get install。这是在删除 squid、iptables 和 dansguardian 之后。我尝试安装 DansGuardian,并运行以下命令:

sudo apt-get install iptables dansguardian squid
sudo gedit /etc/squid/squid.conf 
sudo /etc/init.d/squid restart 
sudo gedit /etc/dansguardian/dansguardian.conf 
sudo apt autoremove dansguardian 
sudo apt-get install iptables dansguardian squid
sudo gedit /etc/dansguardian/dansguardian.conf 
sudo /etc/init.d/dansguardian start 
sudo gedit /etc/init.d/tproxy
sudo update-rc.d tproxy
sudo apt-get install iptables

作为参考,我点击了以下链接:Dansguardian 在 Ubuntu 9.10 Karmic 上使用透明代理进行内容过滤

由于预装软件存在一些困难,我尝试删除 squid、iptables 和 dansguardian,然后重新启动该过程。 sudo apt autoremove iptables dansguardian squid

从那时起,我就无法重新安装任何提到的软件包。

dell@dell-Inspiron-5558:~$ sudo apt-get install squid
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
libdbi-perl libecap3 libnetfilter-conntrack3 libnfnetlink0 squid-common
squid-langpack
Suggested packages:
libmldbm-perl libnet-daemon-perl libsql-statement-perl squidclient squid-cgi
squid-purge smbclient ufw winbindd
The following NEW packages will be installed:
libdbi-perl libecap3 libnetfilter-conntrack3 libnfnetlink0 squid
squid-common squid-langpack
0 upgraded, 7 newly installed, 0 to remove and 142 not upgraded.
Need to get 51.1 kB/3,322 kB of archives.
After this operation, 12.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 libnfnetlink0 amd64 1.0.1-3
Could not connect to in.archive.ubuntu.com:80 (91.189.88.152). - connect (111: Connection refused) [IP: 91.189.88.152 80]
Err:2 http://in.archive.ubuntu.com/ubuntu zesty/main amd64 libnetfilter-conntrack3 amd64 1.0.6-2
Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.152 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/libn/libnfnetlink/libnfnetlink0_1.0.1-3_amd64.deb  Could not connect to in.archive.ubuntu.com:80 (91.189.88.152). - connect (111: Connection refused) [IP: 91.189.88.152 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/libn/libnetfilter-conntrack/libnetfilter-conntrack3_1.0.6-2_amd64.deb  Unable to connect to in.archive.ubuntu.com:http: [IP: 91.189.88.152 80]
E: Unable to fetch some archives, maybe run apt-get update or try with -fix-missing?

另外,有些网站无法打开。

可能是什么问题?

答案1

运行此命令:

sudo apt-get -f install

相关内容