Skip to content
www.mytechnote.ru
Menu
  • Administration
    • Scripts
  • Equipment
    • Reviews
    • Instructions
  • Other
  • English
    • English
    • Русский
Menu

Adjusting Network Priority in Ubuntu Linux: Favoring IPv4 Over IPv6

Facing Archive Canonical Repository Issues? Here’s Your IPv6 Solution!

Understanding the IPv6 Connection Hurdle

When updating the repositories, I found a recurring issue: the system’s reluctance to connect through IPv6 on archive.canonical.com. This not only led to extended wait times but also culminated in a frustrating connection error. Disabling IPv6 seems like the go-to remedy, but it’s akin to using a sledgehammer to crack a nut

Prioritizing IPv4: The Seamless Workaround

By tweaking a few settings, it’s possible to give precedence to IPv4 over IPv6, ensuring smoother updates without sacrificing the benefits of either protocol.

Step-by-Step Tutorial:

  1. Access the System Configuration:

Utilize the command:

sudo nano /etc/gai.conf
  1. Spot the Crucial Line:

Find the line:

#precedence ::ffff:0:0/96  100
  1. Activate the Line:

Uncommenting this line is the key to setting the desired precedence. Now, even if a resource supports both IPv6 and IPv4, our system will favor IPv4.

Retain Both Protocols, Enjoy Hassle-free Updates

Don’t compromise on functionality. With this simple adjustment, embrace the perks of IPv6 and IPv4 without the update hassles.

Posted on 05.09.202330.05.2024 by sanglyb

Post navigation

← Ultimate Guide to Automating Video Intro Insertion: Save Time With Our Simple Script
How to Fix LogMeIn Hamachi Connection Issues on Windows 7 →

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Подписывайтесь

Youtube
vk
telegram
github
twitter
rss
  • Форум
  • Об авторе
  • Поддержать автора

Популярные записи

Новые записи

  • How to Extend an LVM Partition in Linux
  • SCCM Reporting Errors After Migrating from SQL Server 2016 to 2019
  • Problem Using PassFiltEx on Older CPUs
  • How to remove attachments from old calendar events in Exchange using a script
  • How to download and install Office 2024 LTSC

Архивы

  • 2026 (3)
  • 2025 (5)
  • 2024 (7)
  • 2023 (30)
  • 2022 (4)
  • 2020 (17)
  • 2017 (82)
  • 2016 (5)
© 2015-2026 www.mytechnote.ru
Использование материалов сайта возможно только с разрешения владельца или обязательна индексируемая, прямая, передающая вес ссылка на материал.