sources.list file

Lista
Photograph of David Ballew in Unsplash

Deepin has a sources.list. It contains a list of repositories to install or upgrade (both those provided for Deepin Store as the third parties). It is there that speed is an important factor for your computer is updated as quickly as possible factor.

Here we show you how to edit a file named "sources.list" in Deepin via terminal or graphic. The list of mirrors find the respective page.

additional clarifications

  • Note that we use the branch lion packages designed to use the operating system. Before 15.10 was used panda .
  • Line is used for each repository deb[parámetro] http://......... tipo distribución. The parameter optionally indicates that it is made with the signature can not edit with Synaptic.
  • For example: deb [signed-by=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX] http://www.example.org/debian deepin main.
  • If you want to force the repository without relying on a signature line is added by-hash=force. This method could jump Deepin security.
  • Please do not edit this file while upgrade Deepin. It could spell trouble downloading packages.

Procedure

From the terminal
Source.list desde la terminal

  1. Enters the sources.list, you have two commands the terminal:
    • sudo apt edit-sources
  2. Find the line that starts with deb and numeral prefixed not to interfere
    • Example: #deb[by-hash=force] http://..........
  3. Beneath it adds the following line:
    • Example: deb [by-hash=force] http://mirrors.kernel.org/deepin/ panda main contrib non-free
  4. Save changes with the keyboard shortcut: 'Ctrl + O' (nano)
  5. Confirm with the Enter key
  6. Salt editor with this keyboard shortcut: Control + x
  7. Check if you can upgrade with sudo apt update

Note: Nano is a light text editor which is integrated correctly in the terminal you can also replace the built Deepin Editor.

From the file manager

Lista de fuentes para actualizar Deepin

  1. Open the manager with administrative
  2. Login to /etc/apt/sources.list and edit
  3. Find the line that starts with deb and numeral prefixed not to interfere
    • Example: #deb[by-hash=force] http://..........
  4. Beneath it adds the following line:
    • Example: deb [by-hash=force] http://mirrors.kernel.org/deepin/ panda main contrib non-free
  5. Save the file and close the editor and manager
  6. See if you can upgrade from the Control Center

Note: You can not edit the file without administrator permissions.

from Synaptic

If you want to edit safely. This method would be useful not handle more.

  • Opens Synaptic, available in Deepin Store.
  • Go to Settings> Repositories
  • You'll see a list of repositories.
  • You can add or remove your will.
  • If a repository is checked, it will be activated. Otherwise, you can not use that repository packages.

It is possible that if You have added the repository in Synaptic and then the line in sources.list, could the first to quit unexpectedly. Suggest taking measures if the case add duplicates.

Extra: Via Properties software

  1. Install the update manager GNOME;
    • In the terminal it is: sudo apt install software-properties-gtk - Not available in Deepin Store
  2. Access "Software & Update";
    • It is also integrated in Synaptic.
  3. Go to "Download from";
  4. Select the server or, on the other tab it includes an extra.

Note: You can uninstall it with sudo apt remove software-properties-gtk

further reading

Tags:

Would you recommend this article?