LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apt-get - accept upgrades but no downgrades (https://www.linuxquestions.org/questions/linux-newbie-8/apt-get-accept-upgrades-but-no-downgrades-4175561583/)

friedel86 12-16-2015 02:12 AM

Apt-get - accept upgrades but no downgrades
 
Dear Community,
I recently installed a backport for my graphics-drivers (xserver-xorg-video-intel). When I try to update my system (Debian Jessie stable) using sudo apt-get update && sudo apt-get upgrade, apt suggests to do some upgrades, which I would really like to have, but also to do a downgrade for the xserver-xorg-video-intel package, which I don't want to do.

Is there a way to disable or permanently decline the downgrade of a certain package in apt?

When I accept the downgrade my Windowmanager complains that it is running in software rendering mode and the cpu usage increases drastically.

Thanks a lot!

Keruskerfuerst 12-16-2015 02:55 AM

Your post makes no sense.

A backport ususally updates packages.

friedel86 12-16-2015 03:08 AM

Quote:

Originally Posted by Keruskerfuerst (Post 5464958)
...

A backport ususally updates packages.

Exactly and after that said update Apt offers me whenever I run apt-get upgrade, to DOWNGRADE that package to the older version, that was installed before the backport upgrade.
Let me try this:
Problem with graphics -> I install a newer version from backports -> few days later I run my regular updates -> Apt suggests to downgrade to the version before backport.

I hope I made it a bit more understandable what my problem is.
EDIT:
This is the interesting part of my "apt-get update && apt-get upgrade" output:
Code:

The following packages will be upgraded:
  bind9-host cups-browsed cups-filters cups-filters-core-drivers dnsutils host libbind9-90
  libcupsfilters1 libdns-export100 libdns100 libfontembed1 libirs-export91 libisc-export95
  libisc95 libisccc90 libisccfg-export90 libisccfg90 liblwres90
The following packages will be DOWNGRADED:
  xserver-xorg-video-intel
18 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.

I would like to decline the downgrade permanently (or if that is not possible: decline it whenever i run an upgrade manually).

descendant_command 12-16-2015 03:49 AM

Code:

apt-cache policy xserver-xorg-video-intel
?

friedel86 12-16-2015 03:56 AM

The output of apt-cache policy xserver-xorg-video-intel is as follows:
Code:

sudo apt-cache policy xserver-xorg-video-intel
xserver-xorg-video-intel:
  Installed: 2:2.99.917-2~bpo8+1
  Candidate: 2:2.21.15-2+b2
  Version table:
 *** 2:2.99.917-2~bpo8+1 0
        100 http://http.debian.net/debian/ jessie-backports/main amd64 Packages
        100 /var/lib/dpkg/status
    2:2.21.15-2+b2 0
      1001 http://http.debian.net/debian/ jessie/main amd64 Packages

I tried changing the order of the sources.list with no effect.

descendant_command 12-16-2015 04:10 AM

Because you have set the priority of the main repo to 1001.
Why?

friedel86 12-16-2015 04:20 AM

Quote:

Originally Posted by descendant_command (Post 5464978)
Because you have set the priority of the main repo to 1001.
Why?

I had problems with batterymanagement after upgrading the kernel to testing. So i did a downgrade back to stable and forgot to remove the pinning. :doh:
I'm very sorry that i bothered you with my sloppyness. :o

Thank you, next time i will be more thoughtful

descendant_command 12-16-2015 04:26 AM

No apologies required - we've all done similar :)

Sometimes a fresh set of eyes is required on a problem you are scratching your head over.

... and it's a good bit of info for other searchers.


All times are GMT -5. The time now is 09:07 PM.