M BUZZ CRAZE NEWS
// general

Have to use -o Acquire::ForceIPv4=true to do apt-get update/upgrade

By Emma Johnson

I am looking for an other workaround to my problem that apt-get upgrade/update/install wont work via IPv6. I cant use the software center neither can I use the system update center for anything. I only get updates etc. by forcing IPv4.

Is there any way to make a permanent change in the system so I don't have to type the whole line in every time I want to update/upgrade/install something.

If there is a solution to the update and software center problem. Which, I guess, is caused by the same problem I am having with the update/upgrade line.

I really don't know what this problem is caused by. A general Solution would be awesome just as well :D

3

1 Answer

Try this:

Open a terminal,

Press Ctrl+Alt+T

Run it:

exec sudo -i
nano /etc/apt/apt.conf.d/99force-ipv4

In the open file paste this line:

Acquire::ForceIPv4 'true';

Ctrl+O Save file

Ctrl+X Close nano

This should force to use IPv4 in place of IPv6.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy