search
HomeComputer TutorialsComputer KnowledgeHow to configure software mirror source in Ubuntu?

How to configure software mirror source in Ubuntu?

Feb 19, 2024 am 11:15 AM
softwareetcgeographical locationMirror sourcemirror image

How to configure software mirror source in Ubuntu?

Configuring software mirror sources in Ubuntu is an effective way to increase download speeds and obtain software updates. The following are the configuration steps:

  1. Open Terminal: On the Ubuntu desktop, press
    Ctrl Alt T key combination can open the terminal.
  2. Back up the original software source configuration file (optional): If you want to keep the original software source configuration backup, you can execute the following command to backup
    /etc/apt/sources.list document:

    sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
  3. Edit the software source configuration file: Use a text editor (such as
    nano or
    vi) to open the software source configuration file:

    sudo nano /etc/apt/sources.list
  4. Choose a suitable mirror source: Choose a suitable mirror source based on your geographical location or personal preference. Here are some common Ubuntu image sources:

    • Alibaba Cloud Mirror Source: Add the following mirror source configuration to the file:

      deb 
      deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
      deb 
      deb 
    • Tsinghua University Mirror Source: Add the following mirror source configuration to the file:

      deb 
      deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
      deb 
      deb 
    • University of Science and Technology of China Mirror Source: Add the following mirror source configuration to the file:

      deb 
      deb https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
      deb 
      deb 

    You can choose other mirror sources as needed.

  5. Saving and closing files: in
    nano In the editor, press
    Ctrl OSave the file and press
    Ctrl XClose the editor.
  6. Update the package list: Execute the following command to update the package list and use the new mirror source:

    sudo apt update

Now, your Ubuntu system has been configured with a new software image source. You can use the
apt or
apt-get command to install, update, or uninstall the software package, and obtain the software package from the selected mirror source.

The above is the detailed content of How to configure software mirror source in Ubuntu?. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:每日运维. If there is any infringement, please contact admin@php.cn delete
Receive Nvvsvc.exe Runtime Error on Startup? Look Here!Receive Nvvsvc.exe Runtime Error on Startup? Look Here!Apr 11, 2025 am 12:50 AM

Do you encounter nvvsvc.exe runtime error on Startup? What’s worse, some of you might end up with a black screen. Therefore, it is urgent for you to remove this error as soon as possible. In this guide on php.cn Website, we gathered some feasible sol

Advanced Tips for Windows   P Not Working on WindowsAdvanced Tips for Windows P Not Working on WindowsApr 11, 2025 am 12:49 AM

You must be familiar with the Windows P shortcut if you have more than one monitor. However, the Windows P not working properly might happen occasionally. If you are facing this problem, this post from php.cn can help you indeed.

What if Acronis Clone Failed to Read Data from the Disk?What if Acronis Clone Failed to Read Data from the Disk?Apr 11, 2025 am 12:48 AM

The issue of Acronis clone failed to read data from the disk often appears during the cloning process. What should you do when confronted with this boring issue? Try to fix it. Or, you can run an alternative to Acronis True Image – a php.cn software

File Upload Not Implemented - Here Are 4 Methods for It!File Upload Not Implemented - Here Are 4 Methods for It!Apr 11, 2025 am 12:47 AM

When you try to access a Word document from a folder, you may get an error that just says "Not implemented" after clicking it. This post from php.cn introduces how to fix the “file upload not implemented” issue.

AI in Windows: AI-Powered Features in WindowsAI in Windows: AI-Powered Features in WindowsApr 11, 2025 am 12:46 AM

Microsoft has invested a lot of manpower and financial resources in AI and has achieved great results. In this post, php.cn will talk about AI in Windows, including AI tools and features in Windows 11 and Windows 10.

How to Use PowerShell Script for Windows 10 0x80070643 Error?How to Use PowerShell Script for Windows 10 0x80070643 Error?Apr 11, 2025 am 12:45 AM

KB5034441 fails to install with the error code 0x80070643? A PowerShell script for Windows 10 0x80070643 from Microsoft helps to automate updating the WinRE partition to fix the BitLocker Security Feature Bypass vulnerability. php.cn guides on you ho

Where to Find Contra: Operation Galuga Save File Location on PCWhere to Find Contra: Operation Galuga Save File Location on PCApr 11, 2025 am 12:44 AM

Contra: Operation Galuga is a newly released shooter video game published by Konami. Here this post on php.cn Software focuses on Contra: Operation Galuga save file location and explains how to back up Contra: Operation Galuga save files.

Can't Highlight Text in Microsoft Word? Proven Ways HereCan't Highlight Text in Microsoft Word? Proven Ways HereApr 11, 2025 am 12:43 AM

Microsoft Word delivers many useful features for all of us, including highlighting text. However, some people recently faced a problem that they can’t highlight text in Microsoft Word. This problem causes inconvenience to them. If you are one of them

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)