Cant apt-get remove or apt-get install | fopen permission prohibited

So, from where I could not SSH into my headless Linux lineup.

So, I connected the screen and started tools with it.

My server is still fully functional and the window seems tactful. I simply would not allow me SSH.

So, I tried following a few online tutorials on adding my IP address to the SSH permission file, but nothing worked.

I kept getting

"Network Connect: Connection Refused"

when trying SSH using putty.

So, I decided to destroy iptables and do

sudo apt-get remove --purge iptables

which led to the failure.

Something like that

"processing tables for mandb" "fopen permission denied"

So I tried to do

sudo apt-get install iptables

in which he said the same error fopen.

: , ssh ​​ . , . , .

+4
1

fopen , apt-get dpkg , manpages /var/cache/man root:root man:root.

   chown -R man:root /var/cache/man
+8

Source: https://habr.com/ru/post/1526457/


All Articles