How do I identify and/or downgrade all packages that only have /var/lib/dpkg/status as their source?












2















On an Ubuntu 16.04 (Xenial) system, I have installed a bunch of PPAs which installed packages with versions newer than the default repo packages, in an attempt to obtain some newer features that weren't available in the default repos.



Unfortunately, the system ended up being unstable. I removed all the PPAs, but now I have a whole bunch of packages that are ahead of the versions expected by the default repo packages and thus often incompatible with them.



An example of an error I'm getting with these new packages:



E: Can't find a source to download version '2.40.16-1~ubuntu16.04.1' of 'librsvg2-2:amd64'
E: Internal error: couldn't generate list of packages to download
$ apt policy librsvg2-2:amd64
librsvg2-2:
Installed: 2.40.16-1~ubuntu16.04.1
Candidate: 2.40.16-1~ubuntu16.04.1
Version table:
*** 2.40.16-1~ubuntu16.04.1 100
100 /var/lib/dpkg/status
2.40.13-3 500
500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages


I've been re-stabilizing the system by manually identifying and downgrading each of these packages to the repo version. In this case, for example, I'd do:



sudo apt install librsvg2-2:amd64=2.40.13-3


This seems to solve the problem for each individual package, but unfortunately there's a huge number of them so I'l like to find some automated solution that would downgrade them all in a batch.



Is there a way to do that?



The primary way I imagine is to somehow identify all packages that only have /var/lib/dpkg/status as their source. Of course, if there's any other way I'd be happy to learn it.



I have tried the solution from the suggested existing question and all I get is:



$ sudo apt-get -o Dir::Etc::Preferences=a_p dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.









share|improve this question




















  • 4





    Possible duplicate of Downgrade a bunch of packages

    – Kristopher Ives
    Feb 17 at 18:32











  • @KristopherIves Thanks, but I tried the solution and it does nothing (while I'm sure there's many such packages remaining): 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    – Dun Peal
    Feb 17 at 18:37











  • Did you see the ppa-purge command?

    – Kristopher Ives
    Feb 17 at 18:38











  • @KristopherIves Yes, but there were several PPAs ans they were all removed. I'm not sure if I can even find them all again - most of them were added a long time ago.

    – Dun Peal
    Feb 17 at 18:41











  • The easy way was to use ppa-purge. When you rejected that path, you chose a more difficult path. Use of dist-upgrade is not recommended - it will recalculate your system's needs, and might install/uninstall packages that you don't expect.

    – user535733
    Feb 17 at 19:01
















2















On an Ubuntu 16.04 (Xenial) system, I have installed a bunch of PPAs which installed packages with versions newer than the default repo packages, in an attempt to obtain some newer features that weren't available in the default repos.



Unfortunately, the system ended up being unstable. I removed all the PPAs, but now I have a whole bunch of packages that are ahead of the versions expected by the default repo packages and thus often incompatible with them.



An example of an error I'm getting with these new packages:



E: Can't find a source to download version '2.40.16-1~ubuntu16.04.1' of 'librsvg2-2:amd64'
E: Internal error: couldn't generate list of packages to download
$ apt policy librsvg2-2:amd64
librsvg2-2:
Installed: 2.40.16-1~ubuntu16.04.1
Candidate: 2.40.16-1~ubuntu16.04.1
Version table:
*** 2.40.16-1~ubuntu16.04.1 100
100 /var/lib/dpkg/status
2.40.13-3 500
500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages


I've been re-stabilizing the system by manually identifying and downgrading each of these packages to the repo version. In this case, for example, I'd do:



sudo apt install librsvg2-2:amd64=2.40.13-3


This seems to solve the problem for each individual package, but unfortunately there's a huge number of them so I'l like to find some automated solution that would downgrade them all in a batch.



Is there a way to do that?



The primary way I imagine is to somehow identify all packages that only have /var/lib/dpkg/status as their source. Of course, if there's any other way I'd be happy to learn it.



I have tried the solution from the suggested existing question and all I get is:



$ sudo apt-get -o Dir::Etc::Preferences=a_p dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.









share|improve this question




















  • 4





    Possible duplicate of Downgrade a bunch of packages

    – Kristopher Ives
    Feb 17 at 18:32











  • @KristopherIves Thanks, but I tried the solution and it does nothing (while I'm sure there's many such packages remaining): 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    – Dun Peal
    Feb 17 at 18:37











  • Did you see the ppa-purge command?

    – Kristopher Ives
    Feb 17 at 18:38











  • @KristopherIves Yes, but there were several PPAs ans they were all removed. I'm not sure if I can even find them all again - most of them were added a long time ago.

    – Dun Peal
    Feb 17 at 18:41











  • The easy way was to use ppa-purge. When you rejected that path, you chose a more difficult path. Use of dist-upgrade is not recommended - it will recalculate your system's needs, and might install/uninstall packages that you don't expect.

    – user535733
    Feb 17 at 19:01














2












2








2


1






On an Ubuntu 16.04 (Xenial) system, I have installed a bunch of PPAs which installed packages with versions newer than the default repo packages, in an attempt to obtain some newer features that weren't available in the default repos.



Unfortunately, the system ended up being unstable. I removed all the PPAs, but now I have a whole bunch of packages that are ahead of the versions expected by the default repo packages and thus often incompatible with them.



An example of an error I'm getting with these new packages:



E: Can't find a source to download version '2.40.16-1~ubuntu16.04.1' of 'librsvg2-2:amd64'
E: Internal error: couldn't generate list of packages to download
$ apt policy librsvg2-2:amd64
librsvg2-2:
Installed: 2.40.16-1~ubuntu16.04.1
Candidate: 2.40.16-1~ubuntu16.04.1
Version table:
*** 2.40.16-1~ubuntu16.04.1 100
100 /var/lib/dpkg/status
2.40.13-3 500
500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages


I've been re-stabilizing the system by manually identifying and downgrading each of these packages to the repo version. In this case, for example, I'd do:



sudo apt install librsvg2-2:amd64=2.40.13-3


This seems to solve the problem for each individual package, but unfortunately there's a huge number of them so I'l like to find some automated solution that would downgrade them all in a batch.



Is there a way to do that?



The primary way I imagine is to somehow identify all packages that only have /var/lib/dpkg/status as their source. Of course, if there's any other way I'd be happy to learn it.



I have tried the solution from the suggested existing question and all I get is:



$ sudo apt-get -o Dir::Etc::Preferences=a_p dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.









share|improve this question
















On an Ubuntu 16.04 (Xenial) system, I have installed a bunch of PPAs which installed packages with versions newer than the default repo packages, in an attempt to obtain some newer features that weren't available in the default repos.



Unfortunately, the system ended up being unstable. I removed all the PPAs, but now I have a whole bunch of packages that are ahead of the versions expected by the default repo packages and thus often incompatible with them.



An example of an error I'm getting with these new packages:



E: Can't find a source to download version '2.40.16-1~ubuntu16.04.1' of 'librsvg2-2:amd64'
E: Internal error: couldn't generate list of packages to download
$ apt policy librsvg2-2:amd64
librsvg2-2:
Installed: 2.40.16-1~ubuntu16.04.1
Candidate: 2.40.16-1~ubuntu16.04.1
Version table:
*** 2.40.16-1~ubuntu16.04.1 100
100 /var/lib/dpkg/status
2.40.13-3 500
500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages


I've been re-stabilizing the system by manually identifying and downgrading each of these packages to the repo version. In this case, for example, I'd do:



sudo apt install librsvg2-2:amd64=2.40.13-3


This seems to solve the problem for each individual package, but unfortunately there's a huge number of them so I'l like to find some automated solution that would downgrade them all in a batch.



Is there a way to do that?



The primary way I imagine is to somehow identify all packages that only have /var/lib/dpkg/status as their source. Of course, if there's any other way I'd be happy to learn it.



I have tried the solution from the suggested existing question and all I get is:



$ sudo apt-get -o Dir::Etc::Preferences=a_p dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.






apt package-management






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 17 at 18:38







Dun Peal

















asked Feb 17 at 18:20









Dun PealDun Peal

1236




1236








  • 4





    Possible duplicate of Downgrade a bunch of packages

    – Kristopher Ives
    Feb 17 at 18:32











  • @KristopherIves Thanks, but I tried the solution and it does nothing (while I'm sure there's many such packages remaining): 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    – Dun Peal
    Feb 17 at 18:37











  • Did you see the ppa-purge command?

    – Kristopher Ives
    Feb 17 at 18:38











  • @KristopherIves Yes, but there were several PPAs ans they were all removed. I'm not sure if I can even find them all again - most of them were added a long time ago.

    – Dun Peal
    Feb 17 at 18:41











  • The easy way was to use ppa-purge. When you rejected that path, you chose a more difficult path. Use of dist-upgrade is not recommended - it will recalculate your system's needs, and might install/uninstall packages that you don't expect.

    – user535733
    Feb 17 at 19:01














  • 4





    Possible duplicate of Downgrade a bunch of packages

    – Kristopher Ives
    Feb 17 at 18:32











  • @KristopherIves Thanks, but I tried the solution and it does nothing (while I'm sure there's many such packages remaining): 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    – Dun Peal
    Feb 17 at 18:37











  • Did you see the ppa-purge command?

    – Kristopher Ives
    Feb 17 at 18:38











  • @KristopherIves Yes, but there were several PPAs ans they were all removed. I'm not sure if I can even find them all again - most of them were added a long time ago.

    – Dun Peal
    Feb 17 at 18:41











  • The easy way was to use ppa-purge. When you rejected that path, you chose a more difficult path. Use of dist-upgrade is not recommended - it will recalculate your system's needs, and might install/uninstall packages that you don't expect.

    – user535733
    Feb 17 at 19:01








4




4





Possible duplicate of Downgrade a bunch of packages

– Kristopher Ives
Feb 17 at 18:32





Possible duplicate of Downgrade a bunch of packages

– Kristopher Ives
Feb 17 at 18:32













@KristopherIves Thanks, but I tried the solution and it does nothing (while I'm sure there's many such packages remaining): 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

– Dun Peal
Feb 17 at 18:37





@KristopherIves Thanks, but I tried the solution and it does nothing (while I'm sure there's many such packages remaining): 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

– Dun Peal
Feb 17 at 18:37













Did you see the ppa-purge command?

– Kristopher Ives
Feb 17 at 18:38





Did you see the ppa-purge command?

– Kristopher Ives
Feb 17 at 18:38













@KristopherIves Yes, but there were several PPAs ans they were all removed. I'm not sure if I can even find them all again - most of them were added a long time ago.

– Dun Peal
Feb 17 at 18:41





@KristopherIves Yes, but there were several PPAs ans they were all removed. I'm not sure if I can even find them all again - most of them were added a long time ago.

– Dun Peal
Feb 17 at 18:41













The easy way was to use ppa-purge. When you rejected that path, you chose a more difficult path. Use of dist-upgrade is not recommended - it will recalculate your system's needs, and might install/uninstall packages that you don't expect.

– user535733
Feb 17 at 19:01





The easy way was to use ppa-purge. When you rejected that path, you chose a more difficult path. Use of dist-upgrade is not recommended - it will recalculate your system's needs, and might install/uninstall packages that you don't expect.

– user535733
Feb 17 at 19:01










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1119036%2fhow-do-i-identify-and-or-downgrade-all-packages-that-only-have-var-lib-dpkg-sta%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1119036%2fhow-do-i-identify-and-or-downgrade-all-packages-that-only-have-var-lib-dpkg-sta%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

is 'sed' thread safe

How to make a Squid Proxy server?