apt-get error ubuntu
I got one error with “apt-get” command in one of our server which has Ubuntu 12.04 OS. After the Y/N confirmation of apt-get installation command the server went to un-responded state for 4-6 minutes.
Error details are pasted below:
0% [Connecting to archive.ubuntu.com(2001:67c:1360:8c01::1a)]
I figured out the problem. I had to disable IPv6 connectivity, as The Lord Of Time pointed out.
Running the following command in Terminal tells if IPv6 is enabled or not:
cat /proc/sys/net/ipv6/conf/all/disable_ipv6 0 means its enabled 1 means its disabled
To disable IPv6 from within Terminal, enter the following and reboot:
echo "#disable ipv6" | sudo tee -a /etc/sysctl.conf echo "net.ipv6.conf.all.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf echo "net.ipv6.conf.default.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf echo "net.ipv6.conf.lo.disable_ipv6 = 1" | sudo tee -a /etc/sysctl.conf
After boot, re-run the first command(cat /proc/sys/net/ipv6/conf/all/disable_ipv6), and it should be 1 now.
You may use the below pasted command to disable IPv6 connectivity.
echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
That’s it 🙂
It’s time that I had to write an article on IAAC. All giant’s infra are now set and manage as IAAC. Infrastructure As A Code is shorted as IAAC.
I hope you guys are already aware of these tools and you are already started working on that. This is a simple, straight intro to those tools. This will help you to start your journey as an automation engineer.