Big problems with Debian pinning

Discussion in 'all things UNIX' started by amarildojr, Feb 21, 2016.

  1. amarildojr

    amarildojr Registered Member

    Joined:
    Aug 8, 2013
    Posts:
    1,989
    Location:
    Brasil
    I'm using Debian Jessie.

    Basically what I want is:

    • Jessie's Main packages to have a priority of 990;
    • Jessie's Security pacakges to have a priority of 500;
    • Steam and Catalyst to have a priority of 10;
    • Jessie's Backport packages to have a priority of 1;
    • MX15's repo to have a priority of 1;
    • All other non-Free packages to have a priority of "-32768";
    However, it seems impossible to do.

    Here's my '/etc/apt/preferences' file:
    Code:
    Package: *
    Pin: release a=jessie,c=main
    Pin: origin ftp.br.debian.org
    Pin-Priority: 990
    
    Package: *
    Pin: release a=jessie-updates
    Pin: origin ftp.br.debian.org
    Pin-Priority: 500
    
    Package: *
    Pin: origin http://security.debian.org/
    Pin-Priority: 500
    
    Package: steam:i386 firmware-linux-nonfree amd-clinfo amd-libopencl1 amd-opencl-dev amd-opencl-icd fglrx-atieventsd fglrx-control fglrx-driver fglrx-modules-dkms libfglrx libfglrx-amdxvba1 libgl1-fglrx-glx glx-alternative-fglrx nvidia-installer-cleanup
    Pin: origin ftp.br.debian.org
    Pin: release a=jessie,c=conrib,c=non-free
    Pin-Priority: 10
    
    Package: *
    Pin: release a=jessie-backports
    Pin: origin ftp.br.debian.org
    Pin-Priority: 1
    
    ############
    ## MX 15 ###
    ############
    Package: *
    Pin: origin mxrepo.com
    Pin-Priority: 1
    
    Package: geoclue* *-geoclue zeitgeist* libqzeitgeist* libzeitgeist* qml-module-qtlocation qtlocation* qtpositioning* *qtpositioning *.qtpositioning-* libqtlocation* libplasma-geoclocation-* *-zeitgeist *-zeitgeist-* libgeocoding* libgeoclue* libqt5location5*  libgeocode-* *geocodeglib*
    Pin: origin ftp.br.debian.org
    Pin-Priority: -32768
    
    Package: *amsn* checkgmail clamz ekg *flickcurl* *flickrnet* *gdata* gnome-documents gnome-online-miners  gnome-photos googlecloudapis calendar-google-provider *google* kmess libgadu* *libgdata* libkgapi* libmsn* minitube pyicqt pymsnt s3cmd  ttytter ubuntuone-client-gnome yahoo-t chromium chromium-* *chromium* libgoa-* libgoogle-* kopete libkopete4
    Pin: origin ftp.br.debian.org
    Pin-Priority: -32768
    
    Package: *-jre *default-jre* openjdk-* default-jdk* *-jdk *-openjdk-* *icedtea*
    Pin: origin ftp.br.debian.org
    Pin-Priority: -32768
    
    Package: *
    Pin: release c=non-free,c=contrib
    Pin: origin *
    Pin-Priority: -32768
    
    Then, if I update:
    Code:
    Reading state information... Done
    112 packages can be upgraded. Run 'apt list --upgradable' to see them
    These are all from jessie-backports. See:
    Code:
    root@amarildo:~# apt list --upgradable
    Listing... Done
    amd-clinfo/jessie-backports 1:15.12-2~bpo8+1 amd64 [upgradable from: 1:15.9-4~deb8u1]
    amd-libopencl1/jessie-backports 1:15.12-2~bpo8+1 amd64 [upgradable from: 1:15.9-4~deb8u1]
    amd-opencl-dev/jessie-backports 1:15.12-2~bpo8+1 amd64 [upgradable from: 1:15.9-4~deb8u1]
    amd-opencl-icd/jessie-backports 1:15.12-2~bpo8+1 amd64 [upgradable from: 1:15.9-4~deb8u1]
    dmidecode/jessie-backports 3.0-2~bpo8+1 amd64 [upgradable from: 2.12-3]
    exim4/jessie-backports 4.86-7~bpo8+1 all [upgradable from: 4.84-8+deb8u2]
    exim4-base/jessie-backports 4.86-7~bpo8+1 amd64 [upgradable from: 4.84-8+deb8u2]
    exim4-config/jessie-backports 4.86-7~bpo8+1 all [upgradable from: 4.84-8+deb8u2]
    exim4-daemon-light/jessie-backports 4.86-7~bpo8+1 amd64 [upgradable from: 4.84-8+deb8u2]
    fglrx-atieventsd/jessie-backports 1:15.12-2~bpo8+1 amd64 [upgradable from: 1:15.9-4~deb8u1]
    fglrx-control/jessie-backports 1:15.12-2~bpo8+1 amd64 [upgradable from: 1:15.9-4~deb8u1]
    fglrx-driver/jessie-backports 1:15.12-2~bpo8+1 amd64 [upgradable from: 1:15.9-4~deb8u1]
    fglrx-modules-dkms/jessie-backports 1:15.12-2~bpo8+1 amd64 [upgradable from: 1:15.9-4~deb8u1]
    fonts-opensymbol/jessie-backports 2:102.7+LibO5.0.5~rc2-1~bpo8+2 all [upgradable from: 2:102.6+LibO4.3.3-2+deb8u3]
    geoip-database/jessie-backports 20160210-1~bpo8+1 all [upgradable from: 20150317-1]
    glx-alternative-fglrx/jessie-backports 0.7.1~bpo8+1 amd64 [upgradable from: 0.5.1]
    glx-alternative-mesa/jessie-backports 0.7.1~bpo8+1 amd64 [upgradable from: 0.5.1]
    glx-diversions/jessie-backports 0.7.1~bpo8+1 amd64 [upgradable from: 0.5.1]
    libbrlapi0.6/jessie-backports 5.3.1-1~bpo8+1 amd64 [upgradable from: 5.2~20141018-5]
    libdrm-dev/jessie-backports 2.4.66-2~bpo8+1 amd64 [upgradable from: 2.4.58-2]
    libdrm-intel1/jessie-backports 2.4.66-2~bpo8+1 amd64 [upgradable from: 2.4.58-2]
    libdrm-nouveau2/jessie-backports 2.4.66-2~bpo8+1 amd64 [upgradable from: 2.4.58-2]
    libdrm-radeon1/jessie-backports 2.4.66-2~bpo8+1 amd64 [upgradable from: 2.4.58-2]
    libdrm2/jessie-backports 2.4.66-2~bpo8+1 amd64 [upgradable from: 2.4.58-2]
    libegl1-mesa/jessie-backports 11.1.1-2~bpo8+1 amd64 [upgradable from: 10.3.2-1+deb8u1]
    libegl1-mesa-drivers/jessie-backports 11.1.1-2~bpo8+1 amd64 [upgradable from: 10.3.2-1+deb8u1]
    libfglrx/jessie-backports 1:15.12-2~bpo8+1 amd64 [upgradable from: 1:15.9-4~deb8u1]
    libfglrx-amdxvba1/jessie-backports 1:15.12-2~bpo8+1 amd64 [upgradable from: 1:15.9-4~deb8u1]
    libgbm1/jessie-backports 11.1.1-2~bpo8+1 amd64 [upgradable from: 10.3.2-1+deb8u1]
    libgeoip1/jessie-backports 1.6.7-2~bpo8+1 amd64 [upgradable from: 1.6.2-4]
    libgl1-fglrx-glx/jessie-backports 1:15.12-2~bpo8+1 amd64 [upgradable from: 1:15.9-4~deb8u1]
    libgl1-fglrx-glx-i386/jessie-backports 1:15.12-2~bpo8+1 i386 [upgradable from: 1:15.9-4~deb8u1]
    libgl1-mesa-dev/jessie-backports 11.1.1-2~bpo8+1 amd64 [upgradable from: 10.3.2-1+deb8u1]
    libgl1-mesa-dri/jessie-backports 11.1.1-2~bpo8+1 amd64 [upgradable from: 10.3.2-1+deb8u1]
    libgl1-mesa-glx/jessie-backports 11.1.1-2~bpo8+1 amd64 [upgradable from: 10.3.2-1+deb8u1]
    libglapi-mesa/jessie-backports 11.1.1-2~bpo8+1 amd64 [upgradable from: 10.3.2-1+deb8u1]
    libgles1-mesa/jessie-backports 11.1.1-2~bpo8+1 amd64 [upgradable from: 10.3.2-1+deb8u1]
    libgles2-mesa/jessie-backports 11.1.1-2~bpo8+1 amd64 [upgradable from: 10.3.2-1+deb8u1]
    libgphoto2-6/jessie-backports 2.5.8-1~bpo8+1 amd64 [upgradable from: 2.5.4-1.1+b2]
    libgphoto2-l10n/jessie-backports 2.5.8-1~bpo8+1 all [upgradable from: 2.5.4-1.1]
    libjs-jquery/jessie-backports 1.11.3+dfsg-4~bpo8+1 all [upgradable from: 1.7.2+dfsg-3.2]
    libjs-sphinxdoc/jessie-backports 1.3.4-1~bpo8+1 all [upgradable from: 1.2.3+dfsg-1]
    libllvm3.5/jessie-backports 1:3.5.2-3~bpo8+2 amd64 [upgradable from: 1:3.5-10]
    libmtp-common/jessie-backports 1.1.10-1~bpo8+1 all [upgradable from: 1.1.8-1]
    libmtp-runtime/jessie-backports 1.1.10-1~bpo8+1 amd64 [upgradable from: 1.1.8-1+b1]
    libmtp9/jessie-backports 1.1.10-1~bpo8+1 amd64 [upgradable from: 1.1.8-1+b1]
    libnet-dbus-perl/jessie-backports 1.1.0-3~bpo8+1 amd64 [upgradable from: 1.0.0-2+b2]
    libpcap0.8/jessie-backports 1.7.4-1~bpo8+1 amd64 [upgradable from: 1.6.2-2]
    libpulse-mainloop-glib0/jessie-backports 7.1-2~bpo8+1 amd64 [upgradable from: 5.0-13]
    libpulse0/jessie-backports 7.1-2~bpo8+1 amd64 [upgradable from: 5.0-13]
    libpulsedsp/jessie-backports 7.1-2~bpo8+1 amd64 [upgradable from: 5.0-13]
    libreoffice/jessie-backports 1:5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-avmedia-backend-gstreamer/jessie-backports 1:5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-base/jessie-backports 1:5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-base-core/jessie-backports 1:5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-base-drivers/jessie-backports 1:5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-calc/jessie-backports 1:5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-common/jessie-backports 1:5.0.5~rc2-1~bpo8+2 all [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-core/jessie-backports 1:5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-draw/jessie-backports 1:5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-gtk/jessie-backports 1:5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-help-en-us/jessie-backports 1:5.0.5~rc2-1~bpo8+2 all [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-impress/jessie-backports 1:5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-java-common/jessie-backports 1:5.0.5~rc2-1~bpo8+2 all [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-kde/jessie-backports 1:5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-math/jessie-backports 1:5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-report-builder-bin/jessie-backports 1:5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-sdbc-firebird/jessie-backports 1:5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-sdbc-hsqldb/jessie-backports 1:5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-style-galaxy/jessie-backports 1:5.0.5~rc2-1~bpo8+2 all [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-style-oxygen/jessie-backports 1:5.0.5~rc2-1~bpo8+2 all [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-style-tango/jessie-backports 1:5.0.5~rc2-1~bpo8+2 all [upgradable from: 1:4.3.3-2+deb8u3]
    libreoffice-writer/jessie-backports 1:5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 1:4.3.3-2+deb8u3]
    libvdpau1/jessie-backports 1.1.1-1~bpo8+1 amd64 [upgradable from: 0.8-3+deb8u2]
    libwayland-egl1-mesa/jessie-backports 11.1.1-2~bpo8+1 amd64 [upgradable from: 10.3.2-1+deb8u1]
    libxatracker2/jessie-backports 11.1.1-2~bpo8+1 amd64 [upgradable from: 10.3.2-1+deb8u1]
    linux-base/jessie-backports 4.0~bpo8+1 all [upgradable from: 3.5]
    linux-headers-amd64/jessie-backports 4.3+70~bpo8+1 amd64 [upgradable from: 3.16+63]
    linux-image-amd64/jessie-backports 4.3+70~bpo8+1 amd64 [upgradable from: 3.16+63]
    linux-libc-dev/jessie-backports 4.3.3-7~bpo8+1 amd64 [upgradable from: 3.16.7-ckt20-1+deb8u3]
    mesa-common-dev/jessie-backports 11.1.1-2~bpo8+1 amd64 [upgradable from: 10.3.2-1+deb8u1]
    nvidia-installer-cleanup/jessie-backports 20151021+1~bpo8+1 amd64 [upgradable from: 20141201+1]
    opencl-headers/jessie-backports 2.0~svn31815-2~bpo8+1 all [upgradable from: 1.2-svn26009-1]
    pulseaudio/jessie-backports 7.1-2~bpo8+1 amd64 [upgradable from: 5.0-13]
    pulseaudio-module-x11/jessie-backports 7.1-2~bpo8+1 amd64 [upgradable from: 5.0-13]
    pulseaudio-utils/jessie-backports 7.1-2~bpo8+1 amd64 [upgradable from: 5.0-13]
    python-debianbts/jessie-backports 2.6.0~bpo8+1 all [upgradable from: 1.12]
    python-pkg-resources/jessie-backports 18.8-1~bpo8+1 all [upgradable from: 5.5.1-1]
    python-reportbug/jessie-backports 6.6.6~bpo8+1 all [upgradable from: 6.6.3]
    python-six/jessie-backports 1.9.0-3~bpo8+1 all [upgradable from: 1.8.0-1]
    python3-brlapi/jessie-backports 5.3.1-1~bpo8+1 amd64 [upgradable from: 5.2~20141018-5]
    python3-pkg-resources/jessie-backports 18.8-1~bpo8+1 all [upgradable from: 5.5.1-1]
    python3-six/jessie-backports 1.9.0-3~bpo8+1 all [upgradable from: 1.8.0-1]
    python3-uno/jessie-backports 1:5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 1:4.3.3-2+deb8u3]
    reportbug/jessie-backports 6.6.6~bpo8+1 all [upgradable from: 6.6.3]
    shared-mime-info/jessie-backports 1.5-2~bpo8+1 amd64 [upgradable from: 1.3-1]
    unhide/jessie-backports 20130526-1~bpo8+1 amd64 [upgradable from: 20121229-1+b1]
    uno-libs3/jessie-backports 5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 4.3.3-2+deb8u3]
    ure/jessie-backports 5.0.5~rc2-1~bpo8+2 amd64 [upgradable from: 4.3.3-2+deb8u3]
    xbrlapi/jessie-backports 5.3.1-1~bpo8+1 amd64 [upgradable from: 5.2~20141018-5]
    xserver-xorg-video-intel/jessie-backports 2:2.99.917-2~bpo8+1 amd64 [upgradable from: 2:2.21.15-2+b2]
    
    apt-cache policy:
    Code:
    root@amarildo:~# apt-cache policy
    Package files:
    -32768 /var/lib/dpkg/status
      release a=now
    -32768 http://mxrepo.com/mx/repo/ mx15/main Translation-en
      1 http://mxrepo.com/mx/repo/ mx15/main i386 Packages
      release v=15.0,o=MX repository,a=mx,n=mx15,l=MX repository,c=main
      origin mxrepo.com
      1 http://mxrepo.com/mx/repo/ mx15/main amd64 Packages
      release v=15.0,o=MX repository,a=mx,n=mx15,l=MX repository,c=main
      origin mxrepo.com
    -32768 http://ftp.br.debian.org/debian/ jessie-backports/non-free Translation-en
    -32768 http://ftp.br.debian.org/debian/ jessie-backports/main Translation-en
    -32768 http://ftp.br.debian.org/debian/ jessie-backports/contrib Translation-en
    990 http://ftp.br.debian.org/debian/ jessie-backports/non-free i386 Packages
      release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=non-free
      origin ftp.br.debian.org
    990 http://ftp.br.debian.org/debian/ jessie-backports/contrib i386 Packages
      release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=contrib
      origin ftp.br.debian.org
    990 http://ftp.br.debian.org/debian/ jessie-backports/main i386 Packages
      release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=main
      origin ftp.br.debian.org
    990 http://ftp.br.debian.org/debian/ jessie-backports/non-free amd64 Packages
      release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=non-free
      origin ftp.br.debian.org
    990 http://ftp.br.debian.org/debian/ jessie-backports/contrib amd64 Packages
      release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=contrib
      origin ftp.br.debian.org
    990 http://ftp.br.debian.org/debian/ jessie-backports/main amd64 Packages
      release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=main
      origin ftp.br.debian.org
    -32768 http://ftp.br.debian.org/debian/ jessie-updates/main Translation-en
    990 http://ftp.br.debian.org/debian/ jessie-updates/main i386 Packages
      release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=main
      origin ftp.br.debian.org
    990 http://ftp.br.debian.org/debian/ jessie-updates/main amd64 Packages
      release o=Debian,a=stable-updates,n=jessie-updates,l=Debian,c=main
      origin ftp.br.debian.org
    -32768 http://security.debian.org/ jessie/updates/main Translation-en
    990 http://security.debian.org/ jessie/updates/main i386 Packages
      release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=main
      origin security.debian.org
    990 http://security.debian.org/ jessie/updates/main amd64 Packages
      release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=main
      origin security.debian.org
    -32768 http://ftp.br.debian.org/debian/ jessie/non-free Translation-en
    -32768 http://ftp.br.debian.org/debian/ jessie/main Translation-en
    -32768 http://ftp.br.debian.org/debian/ jessie/contrib Translation-en
    990 http://ftp.br.debian.org/debian/ jessie/non-free i386 Packages
      release v=8.3,o=Debian,a=stable,n=jessie,l=Debian,c=non-free
      origin ftp.br.debian.org
    990 http://ftp.br.debian.org/debian/ jessie/contrib i386 Packages
      release v=8.3,o=Debian,a=stable,n=jessie,l=Debian,c=contrib
      origin ftp.br.debian.org
    990 http://ftp.br.debian.org/debian/ jessie/main i386 Packages
      release v=8.3,o=Debian,a=stable,n=jessie,l=Debian,c=main
      origin ftp.br.debian.org
    990 http://ftp.br.debian.org/debian/ jessie/non-free amd64 Packages
      release v=8.3,o=Debian,a=stable,n=jessie,l=Debian,c=non-free
      origin ftp.br.debian.org
    990 http://ftp.br.debian.org/debian/ jessie/contrib amd64 Packages
      release v=8.3,o=Debian,a=stable,n=jessie,l=Debian,c=contrib
      origin ftp.br.debian.org
    990 http://ftp.br.debian.org/debian/ jessie/main amd64 Packages
      release v=8.3,o=Debian,a=stable,n=jessie,l=Debian,c=main
      origin ftp.br.debian.org
    
    
    What am I doing wrong?

    EDIT: Here's some example of how fglrx is being pinned to 10, no matter the origin:
    Code:
    root@amarildo:~# apt-cache policy fglrx-driver
    fglrx-driver:
      Installed: 1:15.9-4~deb8u1
      Candidate: 1:15.12-2~bpo8+1
      Package pin: (not found)
      Version table:
      1:15.12-2~bpo8+1 10
      990 http://ftp.br.debian.org/debian/ jessie-backports/non-free amd64 Packages
     *** 1:15.9-4~deb8u1 10
      990 http://ftp.br.debian.org/debian/ jessie/non-free amd64 Packages
      -32768 /var/lib/dpkg/status
      1:14.9+ga14.201-2mx150+1 10
      1 http://mxrepo.com/mx/repo/ mx15/main amd64 Packages
    
     
    Last edited: Feb 21, 2016
  2. inka

    inka Registered Member

    Joined:
    Oct 21, 2009
    Posts:
    406
    seems counterintuitive to not assign highest priority to their own repo.
    Anyhow, MX has an active forum so that would be the best place to post/ask

    http://forum.mepiscommunity.org/viewforum.php?f=103
     
  3. amarildojr

    amarildojr Registered Member

    Joined:
    Aug 8, 2013
    Posts:
    1,989
    Location:
    Brasil
    Thanks, but I gave up on Debian for the moment. Tried Ubuntu 16.05 as well, but it's sluggish and my HD usage was high everytime I opened something; which didn't happen on Debian or Arch.

    I'm testing openSUSE 42.1 to see how it performs :)
     
  4. dogbite

    dogbite Registered Member

    Joined:
    Dec 13, 2012
    Posts:
    1,166
    Location:
    EU
    When you are tired of hopping just give Fedora a try, you might stick to it..:D
     
  5. amarildojr

    amarildojr Registered Member

    Joined:
    Aug 8, 2013
    Posts:
    1,989
    Location:
    Brasil
    I tried it a few months ago, had tons os problems with it :/ But I will try it again in the future.
     
Loading...