Debian
- Debian. В сущности, первое, что прижилось после того, как стала неудобна винда. С тех пор не ищу добра от добра.
- http://www.debian.org/
- http://packages.debian.org/ - мордочка для просмотра пакетов, если пытаюсь искать по каким-то закоулкам, а не по тому, что у меня.
- http://www.debian.org/international/l10n/po/ru - Состояние PO-файлов для ru. Если захочется попомогать с переводом.
- https://debianforum.ru/ - русскоязычный форум. Когда-то запаслась ссылкой, но даже не зарегистрировалась. :)
- https://ru.wikipedia.org/wiki/Debian
- https://en.wikipedia.org/wiki/Debian
- http://mydebianblog.blogspot.com/ - c 2014, кажется, неактивный, но всё ещё временами актуальный блог
чтобы помнить, что это
- aptitude
- apt-listchanges, apt-rdepends, apt-transport-https и apt-transport-tor, apt-xapian-index (про поиск и автодополнение. Предоставляет axi-cache - прога поиска в консоли, но я не использовала. Зря, наверное.).
- dpkg - система управления пакетами Debian, база всех apt-утилит и aptitude.
- dpkg-dev - инструменты сборки пакетов Debian
- debtree - представление зависимостей пакетов графами
- dctrl-tools - инструменты командной строки для работы с информацией из пакета Debian
- debtags - распаковывает информацию о метках пакетов из базы данных apt и предоставляет её системе или в /var/lib/debtags/debtags, или через apt-xapian-index. Также предоставляет некоторые удобные команды для запроса информации о метках.
всякие мелкополезности
- https://evgenykuznetsov.org/posts/2021/repo/ - мелкорепозиторий своими руками.
репозиторий изменил значение поля
Если изменение ок, то
sudo apt-get --allow-releaseinfo-change update
Пересобрать бинарный пакет c минимальным исправлением из комментариев к "обмани dpkg"
(Там у меня была задача всё-таки поставить scratch и чтоб не жаловался, несмотря на то, что описание зависимостей не позволяло. С работой, помнится, проблем не было.)
Распакуем содержимое пакета:
dpkg -x scratch_1.4.0.1-0ubuntu5_i386.deb scratch_1.4.0.1 dpkg -e scratch_1.4.0.1-0ubuntu5_i386.deb scratch_1.4.0.1/DEBIAN
Откроем файл control c помощью редактора.
mcedit scratch_1.4.0.1/DEBIAN/control
или пройдемся sed.
sed 's/ (>= 1.0.9)//g' -i scratch_1.4.0.1/DEBIAN/control
Соберем пакет обратно.
fakeroot dpkg -b scratch_1.4.0.1 scratch_1.4.0.1-0ubuntu5_fix_i386.deb
добавить и убрать «архитектуру»
dpkg
- –add-architecture architecture
- Add architecture to the list of architectures for which packages can be installed without using –force-architecture (since dpkg 1.16.2). The architecture dpkg is built for (i.e. the output of –print-architecture) is always part of that list.
- –remove-architecture architecture
- Remove architecture from the list of architectures for which packages can be installed without using –force-architecture (since dpkg 1.16.2). If the architecture is currently in use in the database then the operation will be refused, except if –force-architecture is specified. The architecture dpkg is built for (i.e. the output of –print-architecture) can never be removed from that list.
чем заменить apt-key и что делать, если апты-аптитюды жалуются на отсутствие ключа
По ходу, более-менее итоговая команда, адрес и имя ключа менять:
wget -q -O - http://emacs.secretsauce.net/key.gpg | sudo tee /etc/apt/trusted.gpg.d/emacs-secretsauce.gpg > /dev/null
Если с сервера ключей, то, кажется, примерно так (набор циферок для ключа, имя ключа и иногда сервер ключей тож менять):
gpg --keyserver keyserver.ubuntu.com --recv-keys 0105C059050D09EF190826DB248E163FEFB35644; gpg --export 0105C059050D09EF190826DB248E163FEFB35644 | sudo tee /etc/apt/trusted.gpg.d/example-repo-key.gpg > /dev/null
- Без
> /dev/null
консолька неприятно замусоривается странными символами. - Расширения файлов ключей. Make sure to use the "asc" extension for ASCII armored keys and the "gpg" extension for the binary OpenPGP format (also known as "GPG key public ring"). The binary OpenPGP format works for all apt versions, while the ASCII armored format works for apt version >= 1.4.
- Складывание в
/etc/apt/trusted.gpg.d/
позволяет apt доверять этим ключам. Если класть в какой-нить keyrings и указывать[signed-by=/usr/share/keyrings/example-repo-key.gpg]
в строке sources.list, у меня апты-аптитюды всё равно ругаются. Хотя написано:
Recommended: Instead of placing keys into the /etc/apt/trusted.gpg.d directory, you can place them anywhere on your filesystem by using the Signed-By option in your sources.list and pointing to the filename of the key. See sources.list(5) for details. Since APT 2.4, /etc/apt/keyrings is provided as the recommended location for keys not managed by packages. When using a deb822-style sources.list, and with apt version >= 2.4, the Signed-By option can also be used to include the full ASCII armored keyring directly in the sources.list without an additional file.