Как правильно добавить contrib в список репозиториев Debian 13.1.0 Trixie?

Автор SerW, 06 октября 2025, 12:38:02

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

SerW

Я прописываю вот так, правильно ли это?
dragonserw@debian-pn43:~$ cat /etc/apt/sources.list
#deb cdrom:[Debian GNU/Linux 13.1.0 _Trixie_ - Official amd64 DVD Binary-1 with firmware 20250906-10:24]/ trixie contrib main non-free-firmware

deb http://ftp.ru.debian.org/debian/ trixie contrib main non-free-firmware
deb-src http://ftp.ru.debian.org/debian/ trixie contrib main non-free-firmware

deb http://security.debian.org/debian-security trixie-security main non-free-firmware
deb-src http://security.debian.org/debian-security trixie-security main non-free-firmware

# trixie-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://ftp.ru.debian.org/debian/ trixie-updates contrib main non-free-firmware
deb-src http://ftp.ru.debian.org/debian/ trixie-updates contrib main non-free-firmware

# This system was installed using removable media other than
# CD/DVD/BD (e.g. USB stick, SD card, ISO image file).
# The matching "deb cdrom" entries were disabled at the end
# of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
dragonserw@debian-pn43:~$
Сергей Швайко » DragonSerW
gravatar.com/yeysk

ogost

Правильно, но это "по старинке". "По новому" репы нужно прописывать в `/etc/apt/sources.list.d/debian.sources`, как написано в англоязычной вики.
Старый формат (как у вас) работать будет, но скорее всего только до 14 версии.
Если не хотите менять - можете оставить как есть, время есть.

SerW

На странице https://www.debian.org/mirror/list#complete-list нашел вот такие интересующие меня серверы обновлений:
mirror.corbina.net     /debian/     amd64
mirror.kpfu.ru     /debian/     amd64
mirror.neftm.ru     /debian/     amd64
Как я могу добавить один из этих серверов в качестве основного для обновления?
И как добавить `contrib` по-современному? :-)

06 октября 2025, 13:24:59
Вот этот сервер мне интересен, и только он: mirror.corbina.net.
Сергей Швайко » DragonSerW
gravatar.com/yeysk

ferum

alex@ferum:~$ sudo cp /etc/apt/sources.list /home/alex
[sudo] пароль для alex:
alex@ferum:~$ sudo apt modernize-sources
The following files need modernizing:
  - /etc/apt/sources.list
  - /etc/apt/sources.list.d/google-chrome.list
  - /etc/apt/sources.list.d/opera-stable.list

Modernizing will replace .list files with the new .sources format,
add Signed-By values where they can be determined automatically,
and save the old files into .list.bak files.

This command supports the 'signed-by' and 'trusted' options. If you
have specified other options inside [] brackets, please transfer them
manually to the output files; see sources.list(5) for a mapping.

For a simulation, respond Н in the following prompt.
Преобразовать 3 источников? [Д/н]
Modernizing /etc/apt/sources.list...
- Writing /etc/apt/sources.list.d/debian.sources

Modernizing /etc/apt/sources.list.d/google-chrome.list...
- Writing /etc/apt/sources.list.d/google-chrome.sources

Modernizing /etc/apt/sources.list.d/opera-stable.list...
- Writing /etc/apt/sources.list.d/opera-stable.sources
Предупреждение: Could not determine Signed-By for URIs: https://deb.opera.com/opera-stable/, Suites: stable

alex@ferum:~$ mc

alex@ferum:~$ sudo apt update
Сущ:1 http://security.debian.org/debian-security trixie-security InRelease
Сущ:2 http://deb.debian.org/debian trixie InRelease                                                                                                   
Сущ:3 https://dl.google.com/linux/chrome/deb stable InRelease                                                                                         
Сущ:4 http://deb.debian.org/debian trixie-updates InRelease                                                               
Сущ:5 https://deb.opera.com/opera-stable stable InRelease                         
Пол:6 http://deb.debian.org/debian trixie/contrib Sources [52,3 kB]               
Пол:7 http://deb.debian.org/debian trixie/non-free Sources [75,8 kB]
Получено 128 kB за 1с (241 kB/s)                         
Все пакеты имеют последние версии.                               
Уведомление: Отсутствует поле Signed-By в записи sources.list(5) для 'https://deb.opera.com/opera-stable'


06 октября 2025, 15:19:30
Ошибку исправил, очевидно она вызвана присутствием двух ключей репозитория опера 23 и 25 года.
Русские дебианщики против цифрового слабоумия !