Hawaiideveloper / Infastructure-as-Code-Sample_Env

Take your infrastructure mobile and restore on bare metal, or into your favorite borrowed hardware aka cloud
1 stars 3 forks source link

Unable to Edit squid.conf #29

Closed battosai-slayer864 closed 3 years ago

battosai-slayer864 commented 3 years ago

I'm trying to edit the squid.conf. BUT no matter what I try, I doesn't let me. I am logged in the following dir root@5e742d2fb94f:~#` as the video shows. Here are the commands I tried so far.

NOTE: apt-get update was ran before attempting to install any of the below.

apt-get install vim apt-get install gedit vim etc/squid/squid.conf gedit etc/squid/squid.conf gksu gedit squid.conf

When trying to install vim and gedit, it gives me a series of errors. Installing vim or gedit definitely works when I'm on regular terminal. But that would defeat the purpose of editing squid on the running container.

battosai-slayer864 commented 3 years ago

These are the errors that come up:

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gst-plugins-base1.0/gstreamer1.0-x_1.8.3-1ubuntu0.2_amd64.deb 404 Not Found [IP: 91.189.88.142 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

battosai-slayer864 commented 3 years ago

It worked for me after rebooting my laptop.

Then, I did apt-get update apt-get install vim and was able to get edit access to the squid.conf file

Hawaiideveloper commented 3 years ago

Resolved:

See above