Cannot initiate the connection to archive.ubuntu.com:80 (2001:67c:1360:8001::24) ,Network is unreachable) [IP: 91.189.88.142 80

1,644

That looks like a misconfigured IPv6 stack. Linux thinks it has IPv6 and tries to use it (prefers it actually) to connect.

You can force apt-get to use IPv4 adding -o Acquire::ForceIPv4=true. For example:

$ sudo apt-get -o Acquire::ForceIPv4=true update

If you want to make the option permanent you can add it to a file in /etc/apt/apt.conf.d/, for example inside /etc/apt/apt.conf.d/99only-ipv4:

Acquire::ForceIPv4 "true";
Share:
1,644
Cecilia
Author by

Cecilia

Updated on September 18, 2022

Comments

  • Cecilia
    Cecilia over 1 year

    I have a Woocommerce site with Ocean WP theme. The checkout page, order review table, product line is messed up. The Product Name and Product Quantity and Product Amount are compressed into small narrow columns on Mobile Only.

    I have researched endlessly for similar issues and can't find something similar. I have tried modifying the table widths to no effect. How can I see what is blocking the columns from occupying the full width of the table?

    Here is what I've tried:

    @media only screen and (max-width: 600px) {
      tr.cart_item, td.product_name, td.product_total{
        width: 100% !important;
        padding: 0px !important;
        margin: 0px !important;}
      table.woocommerce-checkout-review-order-table .product-quantity {
        width: 200px !important;}   }
    

    Here is the link: https://****.com/checkout/

    See screenshot.

    Woocommerce Checkout Page - Order Review

    • Howard E
      Howard E about 4 years
      Hi. What have you tried to fix this?
    • Cecilia
      Cecilia about 4 years
      I added some code to the description.
    • Mast
      Mast almost 4 years
      Did you verify your own network isn't the problem?
    • Edward
      Edward almost 4 years
      You say you found many others with the same problem. It may help to add links to those problems.
    • Saurav Raj Joshi
      Saurav Raj Joshi almost 4 years
      @Mast how do i do this ? I am using a google wifi as a router, does that harm any way ? other than that how do I know ?
    • Sascha
      Sascha about 2 years
      For me it was the corporate proxy, this was my solution: sudo http_proxy=http://<ip>:<port> https_proxy=http://<ip>:<port> apt-get update
  • Saurav Raj Joshi
    Saurav Raj Joshi almost 4 years
    I did try this , and yes this works. But is there a permanent solution ?
  • Saurav Raj Joshi
    Saurav Raj Joshi almost 4 years
    Ok even forcing to use IPv4 gives the same error .
  • Edison Pebojot
    Edison Pebojot almost 3 years
    It works for me, but how you can make it permanent. For example, without using -o Acquire::ForeIPv4=true
  • Eduardo Trápani
    Eduardo Trápani almost 3 years
    @EdisonPebojot check the updated answer and maybe man apt.conf for all the details.