Strona 2 z 2

: 06 maja 2011, 21:55
autor: Redhead
Używam tylko wersji testowej.

Kod: Zaznacz cały

# apt-cache policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages
     release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main
     origin dl.google.com
 500 http://www.debian-multimedia.org/ testing/non-free Translation-en
 500 http://www.debian-multimedia.org/ testing/main Translation-en
 900 http://www.debian-multimedia.org/ testing/non-free amd64 Packages
     release v=None,o=Unofficial Multimedia Packages,a=testing,n=wheezy,l=Unofficial Multimedia Packages,c=non-free
     origin www.debian-multimedia.org
 900 http://www.debian-multimedia.org/ testing/main amd64 Packages
     release v=None,o=Unofficial Multimedia Packages,a=testing,n=wheezy,l=Unofficial Multimedia Packages,c=main
     origin www.debian-multimedia.org
 900 http://security.debian.org/ testing/updates/main amd64 Packages
     release o=Debian,a=testing,n=wheezy,l=Debian-Security,c=main
     origin security.debian.org
 500 http://ftp.no.debian.org/debian/ testing/main Translation-pl
 900 http://ftp.no.debian.org/debian/ testing/contrib amd64 Packages
     release o=Debian,a=testing,n=wheezy,l=Debian,c=contrib
     origin ftp.no.debian.org
 900 http://ftp.no.debian.org/debian/ testing/non-free amd64 Packages
     release o=Debian,a=testing,n=wheezy,l=Debian,c=non-free
     origin ftp.no.debian.org
Pinned packages:
     rtorrent -> 0.8.6-1


Dodane:
Napiszę jeszcze raz dokładnie teraz.
Więc mam taką sytuacje, repozytoria z wersji stabilnej, Sid i testowej.

Kod: Zaznacz cały

#sid
deb http://ftp.no.debian.org/debian/ sid main non-free contrib
deb-src http://ftp.no.debian.org/debian/ sid main non-free contrib

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

#stable
deb http://ftp.no.debian.org/debian/ stable main non-free contrib
deb-src http://ftp.no.debian.org/debian/ stable main non-free contrib

deb http://security.debian.org/ testing/updates main
deb-src http://security.debian.org/ testing/updates main

#deb http://ftp.no.debian.org/debian/ testing-updates main
#deb-src http://ftp.no.debian.org/debian/ testing-updates main
deb http://www.debian-multimedia.org testing main non-free
Do tego ustawiam priorytet, które repozytoria są ważne i ważniejsze

Kod: Zaznacz cały

Package: *
Pin: release a=testing
Pin-Priority: 900

Package: *
Pin: release a=unstable
Pin-Priority: 800

Package: rtorrent
Pin: version 0.8.6-1
Pin-Priority: 1000
Czyli widać, że paczki powinny się instalować z wersji testowej najpierw, chyba że chcę, to mogę zrobić.

Kod: Zaznacz cały

aptitude install paczka/sid
Zawsze to jakoś działało, ale dzisiaj coś się pokrzaczyło i bierze mi paczki z Sida.

Kod: Zaznacz cały

# aptitude safe-upgrade 
Resolving dependencies...                
The following NEW packages will be installed:
  cpp-4.6{a} g++-4.6{a} gcc-4.6{a} ienglish-common{a} libatkmm-1.6-1{a} libboost-python1.46.1{a} libgd2-noxpm{a} libmtp-runtime{a} libstdc++6-4.6-dev{a} 
The following packages will be upgraded:
  acpi alsa-base alsa-utils avahi-daemon binutils busybox cpp cpp-4.4 cpp-4.5 dbus dbus-x11 debconf debconf-i18n dictionaries-common dos2unix dpkg dpkg-dev evolution evolution-common evolution-data-server evolution-data-server-common 
  evolution-plugins ftp fuse-utils g++ g++-4.5 gcc gcc-4.4 gcc-4.4-base gcc-4.5 gcc-4.5-base gcc-4.6-base geoip-database gimp gimp-data glib-networking ibritish iceweasel installation-report iso-codes ispell lib32gcc1 lib32stdc++6 
  liba52-0.7.4 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libaudio2 libavahi-client3 libavahi-common-data libavahi-common3 libavahi-core7 libavahi-glib1 libavahi-gobject0 libavahi-ui0 libboost-iostreams1.42.0 
  libboost-python1.42.0 libc-bin libc-dev-bin libc6 libc6-dev libc6-i386 libcamel1.2-19 libcddb2 libdb4.6 libdb4.7 libdb4.8 libdb5.1 libdbus-1-3 libdjvulibre-text libdjvulibre21 libdpkg-perl libebackend1.2-0 libebook1.2-10 
  libecal1.2-8 libedata-book1.2-8 libedata-cal1.2-10 libedataserver1.2-14 libedataserverui1.2-11 libegroupwise1.2-13 libevolution libexif12 libfuse2 libgcc1 libgeoip1 libgfortran3 libgimp2.0 libgl1-mesa-dri libgl1-mesa-glx 
  libglu1-mesa libgomp1 libgpgme11 libgphoto2-2 libgphoto2-port0 libgtkmm-2.4-1c2a libgtop2-7 libgtop2-common libgudev-1.0-0 libgweather1 libimobiledevice1 libjte1 liblapack3gf libldap-2.4-2 libmozjs2d libmpfr4 libmtp8 libopenraw1 
  libpam-modules libpam-runtime libpam0g libpcap0.8 libpixman-1-0 libplist1 libqt4-core libqt4-dbus libqt4-designer libqt4-gui libqt4-network libqt4-opengl libqt4-script libqt4-svg libqt4-test libqt4-xml libqtcore4 libqtgui4 
  libquadmath0 libquvi0 libreadline6 libschroedinger-1.0-0 libslang2 libstdc++6 libstdc++6-4.5-dev libsvga1 libtokyocabinet8 libudev0 libupower-glib1 libvlc5 libvlccore4 libvte9 libwebkit-1.0-2 libwebkit-1.0-common libxapian22 
  libxfixes3 libxmu6 libxmuu1 libzbar0 linux-headers-2.6.38-2-amd64 linux-headers-2.6.38-2-common linux-image-2.6.38-2-amd64 linux-libc-dev linux-sound-base locales openssh-client openssh-server os-prober python-cairo 
  python-compizconfig python-gdbm python-glade2 python-gobject python-gst0.10 python-gtk2 python-gtksourceview2 python-rdflib python-reportbug python-tagpy python-twisted-bin python-twisted-conch python-twisted-core 
  python-twisted-web python-xapian readline-common reportbug udev upower vlc vlc-data vlc-nox vlc-plugin-notify vlc-plugin-pulse wget x-ttcidfont-conf x11-utils xserver-common xserver-xephyr xserver-xorg-core xserver-xorg-input-evdev 
  xserver-xorg-input-synaptics xserver-xorg-input-wacom xserver-xorg-video-apm xserver-xorg-video-ark xserver-xorg-video-ati xserver-xorg-video-chips xserver-xorg-video-cirrus xserver-xorg-video-fbdev xserver-xorg-video-i128 
  xserver-xorg-video-intel xserver-xorg-video-mach64 xserver-xorg-video-mga xserver-xorg-video-neomagic xserver-xorg-video-nouveau xserver-xorg-video-openchrome xserver-xorg-video-r128 xserver-xorg-video-radeon 
  xserver-xorg-video-rendition xserver-xorg-video-s3 xserver-xorg-video-s3virge xserver-xorg-video-savage xserver-xorg-video-siliconmotion xserver-xorg-video-sis xserver-xorg-video-sisusb xserver-xorg-video-tdfx 
  xserver-xorg-video-trident xserver-xorg-video-tseng xserver-xorg-video-vesa xserver-xorg-video-vmware xserver-xorg-video-voodoo xulrunner-1.9.1 zsh 
The following packages are RECOMMENDED but will NOT be installed:
  libgphoto2-l10n python-gobject-cairo 
219 packages upgraded, 9 newly installed, 0 to remove and 17 not upgraded.
Need to get 258 MB/283 MB of archives. After unpacking 49.3 MB will be used.
Do you want to continue? [Y/n/?] y
Get:1 http://ftp.no.debian.org/debian/ sid/main libedata-book1.2-8 amd64 2.32.3-1 [258 kB]
Get:2 http://ftp.no.debian.org/debian/ sid/main libedata-cal1.2-10 amd64 2.32.3-1 [289 kB]
Get:3 http://ftp.no.debian.org/debian/ sid/main libegroupwise1.2-13 amd64 2.32.3-1 [264 kB]
Get:4 http://ftp.no.debian.org/debian/ sid/main libgweather1 amd64 2.30.3-1+b1 [83.4 kB]
Get:5 http://ftp.no.debian.org/debian/ sid/main libldap-2.4-2 amd64 2.4.25-1+b1 [220 kB]
0% [5 libldap-2.4-2 1163/220 kB 0%]^C
Z kolei jak ustawie repozytoria tylko na wersję testową, to nie mam w paczkach ekg2. Do tego nie mam tez libglib20dev potrzebnego do skompilowania ekg2 ze źródeł. Tak, jakby pół repozytorium gdzieś wcieło.

Kod: Zaznacz cały

apt-get install ekg2/testing
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Release 'testing' for 'ekg2' was not found

Kod: Zaznacz cały

apt-get install ekg2/sid
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Selected version '1:0.3.1-1+b1' (Debian:unstable [amd64]) for 'ekg2'
The following extra packages will be installed:
  ekg2-core ekg2-dbg ekg2-jabber
Suggested packages:
  ekg2-gnupg ekg2-scripting-python ekg2-scripting-perl ekg2-ui-gtk ekg2-xosd sms-pl
The following NEW packages will be installed:
  ekg2 ekg2-core ekg2-dbg ekg2-jabber
0 upgraded, 4 newly installed, 0 to remove and 236 not upgraded.
Need to get 0 B/2,354 kB of archives.
After this operation, 7,205 kB of additional disk space will be used.
Do you want to continue [Y/n]? 

Kod: Zaznacz cały

apt-get install libglib2.0-dev/testing
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Release 'testing' for 'libglib2.0-dev' was not found

Kod: Zaznacz cały

apt-get install libglib2.0-dev/sid
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Selected version '2.28.6-1' (Debian:unstable [amd64]) for 'libglib2.0-dev'
The following extra packages will be installed:
  libglib2.0-bin pkg-config zlib1g-dev
Suggested packages:
  libglib2.0-doc
The following NEW packages will be installed:
  libglib2.0-bin libglib2.0-dev pkg-config zlib1g-dev
0 upgraded, 4 newly installed, 0 to remove and 236 not upgraded.
Need to get 2,849 kB of archives.
After this operation, 9,118 kB of additional disk space will be used.
Do you want to continue [Y/n]? 

Edycja:
Teraz zahaszowałem wpisy do Sid i działa. Paranoja.

Kod: Zaznacz cały

aptitude search ekg
p   ekg                                                                                                            - console Gadu Gadu client for UNIX systems                                                                                
i   ekg2                                                                                                           - instant messenger and IRC client for UNIX systems                                                                        
i A ekg2-core                                                                                                      - instant messenger and IRC client for UNIX systems - main program                                                         
id  ekg2-dbg                                                                                                       - instant messenger and IRC client for UNIX systems - debugging symbols                                                    
i   ekg2-jabber                                                                                                    - instant messenger and IRC client for UNIX systems - Jabber/XMPP                                                          
i   ekg2-ui-ncurses                                                                                                - instant messenger and IRC client for UNIX systems - ncurses interface                                                    
 # aptitude safe-upgrade 
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

: 06 maja 2011, 23:34
autor: fnmirk
Według mnie masz źle. Ustawienia domyślnej wersji systemu powinny wyglądać tak np.:

Kod: Zaznacz cały

500 http://ftp.no.debian.org/debian/ testing/main Translation-pl
Czyli wartość 500. A pozostałe, z których używasz sporadycznie wartość 100, czyli dla Sida.

Ja mam tak ustawione dla wersji testowej w pliku: /etc/apt/preferences

Kod: Zaznacz cały

Package: *
Pin: release o=Debian,a=unstable
Pin-Priority: 102

Package: *
Pin: release o=Debian,a=experimental
Pin-Priority: 102
Mnie chodzi o nowe wersje jądro:
http://debian.linux.pl/threads/21988-Ek ... w-Debianie

I to działa.

http://wiki.debian.org/AptPreferences?h ... riority%29