Репозитории

Автор IngwarE, 14 февраля 2011, 17:25:31

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

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

Vvasel

#75
Кстати, значение приоритета для a=stable можно выставить 990, но для testing/unstable выставлять выше 500 нельзя. Как написано здесь https://wiki.debian.org/ru/AptPreferences#A.2Fetc.2Fapt.2Fpreferences приоритет выше 500 заставляет пакеты обновляться от туда, независимо от приоритета stable. Может этот баг исправлен, но лучше прислушаться =) Кароч, для лучшего понимания и снижения риска превратить свою систему в нестабильную помойку, нужно курить man apt_prefences. =)
К чему всё это... Недавно мне потребовалось подключить репы от стабильного до экспериментального, и при aptitude upgrade хочет обновиться куева туча пакетов, скачав <500 метров... Тут я и решил задать приоритеты по всем репам. Но есть небольшая проблема, видимо /etc/apt/prefences не работает) Не знаю почему, но apt-cache policy выводит такую бредятину:
Открыть содержимое (спойлер)
Списки пакетов:
100 /var/lib/dpkg/status
     release a=now
500 http://mozilla.debian.net/ wheezy-backports/iceweasel-aurora i386 Packages
     release o=Debian Mozilla Team,a=wheezy-backports,n=wheezy-backports,l=Debian Mozilla Team,c=iceweasel-aurora
     origin mozilla.debian.net
500 http://mozilla.debian.net/ wheezy-backports/iceweasel-aurora amd64 Packages
     release o=Debian Mozilla Team,a=wheezy-backports,n=wheezy-backports,l=Debian Mozilla Team,c=iceweasel-aurora
     origin mozilla.debian.net
500 http://ftp.ru.debian.org/debian/ experimental/non-free Translation-en
500 http://ftp.ru.debian.org/debian/ experimental/main Translation-en
500 http://ftp.ru.debian.org/debian/ experimental/contrib Translation-en
   1 http://ftp.ru.debian.org/debian/ experimental/non-free i386 Packages
     release o=Debian,a=experimental,n=experimental,l=Debian,c=non-free
     origin ftp.ru.debian.org
   1 http://ftp.ru.debian.org/debian/ experimental/contrib i386 Packages
     release o=Debian,a=experimental,n=experimental,l=Debian,c=contrib
     origin ftp.ru.debian.org
   1 http://ftp.ru.debian.org/debian/ experimental/main i386 Packages
     release o=Debian,a=experimental,n=experimental,l=Debian,c=main
     origin ftp.ru.debian.org
   1 http://ftp.ru.debian.org/debian/ experimental/non-free amd64 Packages
     release o=Debian,a=experimental,n=experimental,l=Debian,c=non-free
     origin ftp.ru.debian.org
   1 http://ftp.ru.debian.org/debian/ experimental/contrib amd64 Packages
     release o=Debian,a=experimental,n=experimental,l=Debian,c=contrib
     origin ftp.ru.debian.org
   1 http://ftp.ru.debian.org/debian/ experimental/main amd64 Packages
     release o=Debian,a=experimental,n=experimental,l=Debian,c=main
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ unstable/non-free Translation-en
500 http://ftp.ru.debian.org/debian/ unstable/main Translation-ru
500 http://ftp.ru.debian.org/debian/ unstable/main Translation-en
500 http://ftp.ru.debian.org/debian/ unstable/contrib Translation-en
500 http://ftp.ru.debian.org/debian/ unstable/non-free i386 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=non-free
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ unstable/contrib i386 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=contrib
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ unstable/main i386 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=main
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ unstable/non-free amd64 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=non-free
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ unstable/contrib amd64 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=contrib
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ unstable/main amd64 Packages
     release o=Debian,a=unstable,n=sid,l=Debian,c=main
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ testing/non-free Translation-en
500 http://ftp.ru.debian.org/debian/ testing/main Translation-ru
500 http://ftp.ru.debian.org/debian/ testing/main Translation-en
500 http://ftp.ru.debian.org/debian/ testing/contrib Translation-en
500 http://ftp.ru.debian.org/debian/ testing/non-free i386 Packages
     release o=Debian,a=testing,n=jessie,l=Debian,c=non-free
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ testing/contrib i386 Packages
     release o=Debian,a=testing,n=jessie,l=Debian,c=contrib
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ testing/main i386 Packages
     release o=Debian,a=testing,n=jessie,l=Debian,c=main
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ testing/non-free amd64 Packages
     release o=Debian,a=testing,n=jessie,l=Debian,c=non-free
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ testing/contrib amd64 Packages
     release o=Debian,a=testing,n=jessie,l=Debian,c=contrib
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ testing/main amd64 Packages
     release o=Debian,a=testing,n=jessie,l=Debian,c=main
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ wheezy-proposed-updates/non-free Translation-en
500 http://ftp.ru.debian.org/debian/ wheezy-proposed-updates/main Translation-en
500 http://ftp.ru.debian.org/debian/ wheezy-proposed-updates/contrib Translation-en
500 http://ftp.ru.debian.org/debian/ wheezy-proposed-updates/main i386 Packages
     release v=7-updates,o=Debian,a=proposed-updates,n=wheezy-proposed-updates,l=Debian,c=main
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ wheezy-proposed-updates/contrib i386 Packages
     release v=7-updates,o=Debian,a=proposed-updates,n=wheezy-proposed-updates,l=Debian,c=contrib
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ wheezy-proposed-updates/non-free i386 Packages
     release v=7-updates,o=Debian,a=proposed-updates,n=wheezy-proposed-updates,l=Debian,c=non-free
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ wheezy-proposed-updates/main amd64 Packages
     release v=7-updates,o=Debian,a=proposed-updates,n=wheezy-proposed-updates,l=Debian,c=main
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ wheezy-proposed-updates/contrib amd64 Packages
     release v=7-updates,o=Debian,a=proposed-updates,n=wheezy-proposed-updates,l=Debian,c=contrib
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ wheezy-proposed-updates/non-free amd64 Packages
     release v=7-updates,o=Debian,a=proposed-updates,n=wheezy-proposed-updates,l=Debian,c=non-free
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ wheezy-updates/non-free Translation-en
500 http://ftp.ru.debian.org/debian/ wheezy-updates/main Translation-en
500 http://ftp.ru.debian.org/debian/ wheezy-updates/contrib Translation-en
500 http://ftp.ru.debian.org/debian/ wheezy-updates/non-free i386 Packages
     release o=Debian,a=stable-updates,n=wheezy-updates,l=Debian,c=non-free
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ wheezy-updates/contrib i386 Packages
     release o=Debian,a=stable-updates,n=wheezy-updates,l=Debian,c=contrib
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ wheezy-updates/main i386 Packages
     release o=Debian,a=stable-updates,n=wheezy-updates,l=Debian,c=main
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ wheezy-updates/non-free amd64 Packages
     release o=Debian,a=stable-updates,n=wheezy-updates,l=Debian,c=non-free
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ wheezy-updates/contrib amd64 Packages
     release o=Debian,a=stable-updates,n=wheezy-updates,l=Debian,c=contrib
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ wheezy-updates/main amd64 Packages
     release o=Debian,a=stable-updates,n=wheezy-updates,l=Debian,c=main
     origin ftp.ru.debian.org
500 http://security.debian.org/ wheezy/updates/non-free Translation-en
500 http://security.debian.org/ wheezy/updates/main Translation-en
500 http://security.debian.org/ wheezy/updates/contrib Translation-en
500 http://security.debian.org/ wheezy/updates/non-free i386 Packages
     release v=7.0,o=Debian,a=stable,n=wheezy,l=Debian-Security,c=non-free
     origin security.debian.org
500 http://security.debian.org/ wheezy/updates/contrib i386 Packages
     release v=7.0,o=Debian,a=stable,n=wheezy,l=Debian-Security,c=contrib
     origin security.debian.org
500 http://security.debian.org/ wheezy/updates/main i386 Packages
     release v=7.0,o=Debian,a=stable,n=wheezy,l=Debian-Security,c=main
     origin security.debian.org
500 http://security.debian.org/ wheezy/updates/non-free amd64 Packages
     release v=7.0,o=Debian,a=stable,n=wheezy,l=Debian-Security,c=non-free
     origin security.debian.org
500 http://security.debian.org/ wheezy/updates/contrib amd64 Packages
     release v=7.0,o=Debian,a=stable,n=wheezy,l=Debian-Security,c=contrib
     origin security.debian.org
500 http://security.debian.org/ wheezy/updates/main amd64 Packages
     release v=7.0,o=Debian,a=stable,n=wheezy,l=Debian-Security,c=main
     origin security.debian.org
500 http://ftp.ru.debian.org/debian/ wheezy/non-free Translation-en
500 http://ftp.ru.debian.org/debian/ wheezy/main Translation-ru
500 http://ftp.ru.debian.org/debian/ wheezy/main Translation-en
500 http://ftp.ru.debian.org/debian/ wheezy/contrib Translation-en
500 http://ftp.ru.debian.org/debian/ wheezy/contrib i386 Packages
     release v=7.1,o=Debian,a=stable,n=wheezy,l=Debian,c=contrib
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ wheezy/non-free i386 Packages
     release v=7.1,o=Debian,a=stable,n=wheezy,l=Debian,c=non-free
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ wheezy/main i386 Packages
     release v=7.1,o=Debian,a=stable,n=wheezy,l=Debian,c=main
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ wheezy/contrib amd64 Packages
     release v=7.1,o=Debian,a=stable,n=wheezy,l=Debian,c=contrib
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ wheezy/non-free amd64 Packages
     release v=7.1,o=Debian,a=stable,n=wheezy,l=Debian,c=non-free
     origin ftp.ru.debian.org
500 http://ftp.ru.debian.org/debian/ wheezy/main amd64 Packages
     release v=7.1,o=Debian,a=stable,n=wheezy,l=Debian,c=main
     origin ftp.ru.debian.org
Зафиксированные пакеты:
[свернуть]
Может я чего не понимаю, но по-моему, не у всех репов приоритет должен быть 500... Кто знает, в чём фишка?

Сообщение объединено: 18 сентября 2013, 12:19:17

А вот пример
Открыть содержимое (спойлер)
apt-cache policy juk
juk:
  Установлен: 4:4.8.4-2
  Кандидат:   4:4.10.5-1
  Таблица версий:
     4:4.10.5-1 0
        500 http://ftp.ru.debian.org/debian/ testing/main amd64 Packages
        500 http://ftp.ru.debian.org/debian/ unstable/main amd64 Packages
*** 4:4.8.4-2 0
        500 http://ftp.ru.debian.org/debian/ wheezy/main amd64 Packages
        100 /var/lib/dpkg/status
[свернуть]
Стопудов, я делаю что-то не так(

Vvasel

etc/apt/sources.list:
Открыть содержимое (спойлер)
# main
deb http://ftp.ru.debian.org/debian/ wheezy main non-free contrib

# security
deb http://security.debian.org/ wheezy/updates main contrib non-free

# wheezy-updates, previously known as 'volatile'
deb http://ftp.ru.debian.org/debian/ wheezy-updates main contrib non-free


deb http://ftp.ru.debian.org/debian/ wheezy-proposed-updates non-free contrib main

# testing
deb http://ftp.ru.debian.org/debian/ testing main contrib non-free

# unstable
deb http://ftp.ru.debian.org/debian/ unstable main contrib non-free

# experimental
deb http://ftp.ru.debian.org/debian/ experimental main contrib non-free

# iceweasel_aurora
deb http://mozilla.debian.net/ wheezy-backports iceweasel-aurora
[свернуть]

etc/apt/preferences:
Открыть содержимое (спойлер)
Package: *
Pin: release a=stable
Pin-Priority: 1000
Package: *
Pin: release a=testing
Pin-Priority: 450
Package: *
Pin: release a=unstable
Pin-Priority: 150
Package: *
Pin: release a=experimental
Pin-Priority: 1
[свернуть]

Вроде всё правильно. Но опять же
Открыть содержимое (спойлер)
apt-cache policy juk
juk:
Установлен: 4:4.8.4-2
Кандидат: 4:4.10.5-1
Таблица версий:
4:4.10.5-1 0
500 http://ftp.ru.debian.org/debian/ testing/main amd64 Packages
500 http://ftp.ru.debian.org/debian/ unstable/main amd64 Packages
*** 4:4.8.4-2 0
500 http://ftp.ru.debian.org/debian/ wheezy/main amd64 Packages
100 /var/lib/dpkg/status
[свернуть]
Я уже не знаю, что делать. Два дня убил на пустые поиски в гугле.

Malaheenee

#77
Можно задать релиз по умолчанию:
Цитата: /etc/apt/apt.conf.d/02-apt-local# Собственно, задаем
Apt::Default-Release "unstable";
# Отключаем установку рекомендаций как зависимостей (очень удобно)
Apt::Install-Recommends "false";
# Показываем версии при обновлении
Aptitude::CmdLine::Show-Versions "true";
Он будет иметь самый высокий приоритет (990) вне зависимости от preferences. Даьше уже можно шаманить.
Цитата: /etc/apt/preferences.d/02-iceweaselPackage: iceweasel*
Pin: release a=testing
Pin-Priority: 995
Открыть содержимое (спойлер)
iceweasel:
  Installé : 17.0.8esr-2
  Candidat : 17.0.8esr-2
  Épinglage de paquet : 17.0.8esr-2 <- ключевая строчка
Table de version :
     24.0-2 995
        990 http://ftp.fr.debian.org/debian/ unstable/main i386 Packages
*** 17.0.8esr-2 995
        500 http://ftp.fr.debian.org/debian/ testing/main i386 Packages
        100 /var/lib/dpkg/status
[свернуть]
Все мы где-то, когда-то и в чем-то были новичками.

Vvasel

Разобрался в своей проблеме) Сказывается недостаток опыта и немного недостаток конкретной информации в сети. Блоки
Открыть содержимое (спойлер)
Package: *
Pin: release a=stable
Pin-Priority: 990
[свернуть]
надо разделять пустой строкой. Так:
Открыть содержимое (спойлер)
Package: *
Pin: release a=stable
Pin-Priority: 990

Package: *
Pin: release a=testing
Pin-Priority: 450
[свернуть]
Таким же как я нубам, на заметку, и батькам для того, чтобы знали, на что обращать внимание при обращении к вам за помощью =))

leomuz

Подскажите, работает или нет реп ppa:nvbn-rm/ppa, что то не получается к нему обратиться?

Открыть содержимое (спойлер)
W: Не удалось получить http://ppa.launchpad.net/nvbn-rm/ppa/ubuntu/dists/debian/main/source/Sources  404  Not Found

W: Не удалось получить http://ppa.launchpad.net/nvbn-rm/ppa/ubuntu/dists/debian/main/binary-i386/Packages  404  Not Found
[свернуть]


ferum

Работает, но это репозиторий ubuntu https://launchpad.net/~nvbn-rm/+archive/ppa для debian в нём ни чего нет. От крайней нужды можно позаимствовать source но надо твёрдо знать что делаешь.
Русские дебианщики против цифрового слабоумия !

starlayt

У дебиана почему-то много похожих репозиториев. Вот например:

deb http://security.debian.org/ jessie/updates main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free

чем они отличаются?

qupl

starlayt, это один и тот же репозиторий. Текущий testing релиз - это jessie. Чтобы не задавать подобных вопросов загляните в wiki.

starlayt

qupl, что-то нет в этом уверенности, что один и тот же. Например в stable больше пакетов, чем во wheezy (в нем даже флэш-плеера не ооказалось). Хотя, это тоже вроде как должны быть одинаковые репы. Но нет. Потому и спрашивал.

ferum

starlayt, будте внимательнее , просто основной репозиторий debian по лицензионным соображениям разделён на 3 секции main, contrib, non-free так вот фешплеер представлен пакетом flashplugin-nonfree находится в несвободной секции.
Русские дебианщики против цифрового слабоумия !

Malaheenee

Цитата: ferum от 21 июня 2014, 13:16:25фешплеер представлен пакетом flashplugin-nonfree
СТрого говоря, это вообще установщик оного.
Все мы где-то, когда-то и в чем-то были новичками.

starlayt

sid - unstable
jessie - testing
wheezy - stable
squeeze - old stable
lenny - old old stable (сейчас 5.0.10)
Я правильно понимаю? Инфу брал с debian.org, вот эта тема меня запутала.

Defman

Цитата: starlayt от 22 июня 2014, 23:44:20
sid - unstable
jessie - testing
wheezy - stable
squeeze - old stable
lenny - old old stable (сейчас 5.0.10)
Я правильно понимаю? Инфу брал с debian.org, вот эта тема меня запутала.
Этой теме 2-4 года... А список вроде правильный.
:)

starlayt

Скажите, testing == jessie? Или как? Везде написано, что да, это просто название testing (имена из какого-то мультика). Но что-то терзают сомнения.

Александр Кряжев

Нет. Jessie это теперь stable.