Apt-get kann wahrscheinlich wegen iptables nicht installiert werden

Apt-get kann wahrscheinlich wegen iptables nicht installiert werden

Ich arbeite mit iptables auf einem OVH VPS, kann aber nicht auf Ubuntu-Pakete zugreifen und weiß absolut nicht, warum ...

apt-get install package_name

sagt:

package_name wurde nicht gefunden

und die automatische Vervollständigung ist nicht verfügbar.

Aber wenn ich ein mache apt-get update, werden alle Ziele erreicht.

Ich füge meine Iptables-Liste ein:

Chain INPUT (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere             tcp spt:http
ACCEPT     tcp  --  anywhere             anywhere             tcp spt:domain
ACCEPT     udp  --  anywhere             anywhere             udp spt:domain
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:8443 state NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:XXXX state NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:http state NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:https state NEW
ACCEPT     tcp  --  anywhere             anywhere             state NEW tcp dpt:smtp
ACCEPT     tcp  --  anywhere             anywhere             state NEW tcp dpt:submission
ACCEPT     icmp --  anywhere             anywhere             icmp echo-request
LOG        all  --  anywhere             anywhere             LOG level warning
DROP       all  --  anywhere             anywhere

Chain FORWARD (policy DROP)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere

Wenn Sie eine fehlende Regel sehen, sagen Sie es mir bitte!

verwandte Informationen