How to install the previous version of a .deb package and pin it?











up vote
6
down vote

favorite
1












I am trying to install the latest version of subversion on Sid, and because it has a bug I receive a warning and I abort the installation. How do I get to locate the previous version version, install it and pin until the bug is resolved?



root@server01:~# apt-get install subversion  
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
db5.3-util subversion-tools
The following NEW packages will be installed:
subversion
0 upgraded, 1 newly installed, 0 to remove and 205 not upgraded.
Need to get 0 B/981 kB of archives.
After this operation, 4,844 kB of additional disk space will be used.
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
critical bugs of subversion (-> 1.9.2-2) <Outstanding>
b1 - #803725 - subversion: dump-load of a repository modifies verbose log output: M line lost
serious bugs of subversion (-> 1.9.2-2) <Outstanding>
b2 - #803589 - FTBFS with ruby2.2 (only)
Summary:
subversion(2 bugs)
Are you sure you want to install/upgrade the above packages? [Y/n/?/...] n
**********************************************************************
****** Exiting with an error in order to stop the installation. ******
**********************************************************************
E: Sub-process /usr/sbin/apt-listbugs apt returned an error code (10)
E: Failure running script /usr/sbin/apt-listbugs apt









share|improve this question
























  • I would prefer to freeze it then pin it. I only pin things that I do not want installed at all, like systemd related dependencies, or dependencies installing firmware in VMs. To froze a package echo "subversion hold" | dpkg --set-selections
    – Rui F Ribeiro
    Nov 15 '15 at 14:07












  • I have given a more detailed answer below as that was the eventual solution, but have left the answer as it is because it is technically correct. The related question to the solution is here - unix.stackexchange.com/questions/242101/…
    – vfclists
    Jun 3 '17 at 10:19

















up vote
6
down vote

favorite
1












I am trying to install the latest version of subversion on Sid, and because it has a bug I receive a warning and I abort the installation. How do I get to locate the previous version version, install it and pin until the bug is resolved?



root@server01:~# apt-get install subversion  
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
db5.3-util subversion-tools
The following NEW packages will be installed:
subversion
0 upgraded, 1 newly installed, 0 to remove and 205 not upgraded.
Need to get 0 B/981 kB of archives.
After this operation, 4,844 kB of additional disk space will be used.
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
critical bugs of subversion (-> 1.9.2-2) <Outstanding>
b1 - #803725 - subversion: dump-load of a repository modifies verbose log output: M line lost
serious bugs of subversion (-> 1.9.2-2) <Outstanding>
b2 - #803589 - FTBFS with ruby2.2 (only)
Summary:
subversion(2 bugs)
Are you sure you want to install/upgrade the above packages? [Y/n/?/...] n
**********************************************************************
****** Exiting with an error in order to stop the installation. ******
**********************************************************************
E: Sub-process /usr/sbin/apt-listbugs apt returned an error code (10)
E: Failure running script /usr/sbin/apt-listbugs apt









share|improve this question
























  • I would prefer to freeze it then pin it. I only pin things that I do not want installed at all, like systemd related dependencies, or dependencies installing firmware in VMs. To froze a package echo "subversion hold" | dpkg --set-selections
    – Rui F Ribeiro
    Nov 15 '15 at 14:07












  • I have given a more detailed answer below as that was the eventual solution, but have left the answer as it is because it is technically correct. The related question to the solution is here - unix.stackexchange.com/questions/242101/…
    – vfclists
    Jun 3 '17 at 10:19















up vote
6
down vote

favorite
1









up vote
6
down vote

favorite
1






1





I am trying to install the latest version of subversion on Sid, and because it has a bug I receive a warning and I abort the installation. How do I get to locate the previous version version, install it and pin until the bug is resolved?



root@server01:~# apt-get install subversion  
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
db5.3-util subversion-tools
The following NEW packages will be installed:
subversion
0 upgraded, 1 newly installed, 0 to remove and 205 not upgraded.
Need to get 0 B/981 kB of archives.
After this operation, 4,844 kB of additional disk space will be used.
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
critical bugs of subversion (-> 1.9.2-2) <Outstanding>
b1 - #803725 - subversion: dump-load of a repository modifies verbose log output: M line lost
serious bugs of subversion (-> 1.9.2-2) <Outstanding>
b2 - #803589 - FTBFS with ruby2.2 (only)
Summary:
subversion(2 bugs)
Are you sure you want to install/upgrade the above packages? [Y/n/?/...] n
**********************************************************************
****** Exiting with an error in order to stop the installation. ******
**********************************************************************
E: Sub-process /usr/sbin/apt-listbugs apt returned an error code (10)
E: Failure running script /usr/sbin/apt-listbugs apt









share|improve this question















I am trying to install the latest version of subversion on Sid, and because it has a bug I receive a warning and I abort the installation. How do I get to locate the previous version version, install it and pin until the bug is resolved?



root@server01:~# apt-get install subversion  
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
db5.3-util subversion-tools
The following NEW packages will be installed:
subversion
0 upgraded, 1 newly installed, 0 to remove and 205 not upgraded.
Need to get 0 B/981 kB of archives.
After this operation, 4,844 kB of additional disk space will be used.
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
critical bugs of subversion (-> 1.9.2-2) <Outstanding>
b1 - #803725 - subversion: dump-load of a repository modifies verbose log output: M line lost
serious bugs of subversion (-> 1.9.2-2) <Outstanding>
b2 - #803589 - FTBFS with ruby2.2 (only)
Summary:
subversion(2 bugs)
Are you sure you want to install/upgrade the above packages? [Y/n/?/...] n
**********************************************************************
****** Exiting with an error in order to stop the installation. ******
**********************************************************************
E: Sub-process /usr/sbin/apt-listbugs apt returned an error code (10)
E: Failure running script /usr/sbin/apt-listbugs apt






apt






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 15 '15 at 13:57









Braiam

23k1975137




23k1975137










asked Nov 10 '15 at 0:55









vfclists

2,57452744




2,57452744












  • I would prefer to freeze it then pin it. I only pin things that I do not want installed at all, like systemd related dependencies, or dependencies installing firmware in VMs. To froze a package echo "subversion hold" | dpkg --set-selections
    – Rui F Ribeiro
    Nov 15 '15 at 14:07












  • I have given a more detailed answer below as that was the eventual solution, but have left the answer as it is because it is technically correct. The related question to the solution is here - unix.stackexchange.com/questions/242101/…
    – vfclists
    Jun 3 '17 at 10:19




















  • I would prefer to freeze it then pin it. I only pin things that I do not want installed at all, like systemd related dependencies, or dependencies installing firmware in VMs. To froze a package echo "subversion hold" | dpkg --set-selections
    – Rui F Ribeiro
    Nov 15 '15 at 14:07












  • I have given a more detailed answer below as that was the eventual solution, but have left the answer as it is because it is technically correct. The related question to the solution is here - unix.stackexchange.com/questions/242101/…
    – vfclists
    Jun 3 '17 at 10:19


















I would prefer to freeze it then pin it. I only pin things that I do not want installed at all, like systemd related dependencies, or dependencies installing firmware in VMs. To froze a package echo "subversion hold" | dpkg --set-selections
– Rui F Ribeiro
Nov 15 '15 at 14:07






I would prefer to freeze it then pin it. I only pin things that I do not want installed at all, like systemd related dependencies, or dependencies installing firmware in VMs. To froze a package echo "subversion hold" | dpkg --set-selections
– Rui F Ribeiro
Nov 15 '15 at 14:07














I have given a more detailed answer below as that was the eventual solution, but have left the answer as it is because it is technically correct. The related question to the solution is here - unix.stackexchange.com/questions/242101/…
– vfclists
Jun 3 '17 at 10:19






I have given a more detailed answer below as that was the eventual solution, but have left the answer as it is because it is technically correct. The related question to the solution is here - unix.stackexchange.com/questions/242101/…
– vfclists
Jun 3 '17 at 10:19












2 Answers
2






active

oldest

votes

















up vote
8
down vote



accepted










You can tell apt-get to install a specific version of a package. For your example:



apt-get install subversion


you would append the version to the package name, e.g.,



apt-get install subversion=1.9.2-1


To find a package version, the Debian wiki page RollbackUpdate shows an example where that information is found in



http://www.debian.org/distrib/packages, i.e.,
https://www.debian.org/distrib/packages#search_packages



or (older versions) via



http://snapshot.debian.org/
http://snapshot.debian.org/package/subversion/



shows
http://snapshot.debian.org/package/subversion/1.9.2-2/
http://snapshot.debian.org/package/subversion/1.9.2-1/
http://snapshot.debian.org/package/subversion/1.9.1-1/



and so forth.



Finally, the Debian page shows (for its example) the change to make to /etc/apt/preferences to pin the package.






share|improve this answer





















  • See my answer for the eventual solution to the problem. It was necessary to specify the full name of the repo for the required version. I haven't unmarked the answer as it is correct with reference to the question.
    – vfclists
    Jun 3 '17 at 10:18


















up vote
1
down vote













This is the eventual solution to the problem. The important thing is that the URL for the repository in the sources.list should be the full one containing the repo for the required package, in this case http://snapshot.debian.org/archive/debian/20150924T154447Z/. There is a good write up at http://mindref.blogspot.co.uk/2012/02/apt-revert-upgrade.html and also explained in a related question - What is the proper syntax for pinning a debian package to a repository and a version?



/etc/apt/sources.list.d/snapshots.list



# snapshot.debian.org
# added for subversion 1.9.2 subversion bug #803725
deb http://snapshot.debian.org/archive/debian/20150924T154447Z/ unstable main


/etc/apt/preferences.d/subversion



Package: subversion libsvn1
Pin: version 1.9.2-1
Pin-Priority: 700


apt-cache policy subversion



subversion:
Installed: 1.9.2-1
Candidate: 1.9.2-1
Package pin: 1.9.2-1
Version table:
1.9.2-3+b1 700
500 http://http.debian.net/debian/ unstable/main amd64 Packages
*** 1.9.2-1 700
500 http://snapshot.debian.org/archive/debian/20150924T154447Z/ unstable/main amd64 Packages
100 /var/lib/dpkg/status





share|improve this answer























  • In case this helps someone: I went back to last Ubuntu LTS using deb http://de.archive.ubuntu.com/ubuntu/ bionic universe and Package: openjfx Pin: release a=bionic Pin-Priority: 1001
    – JPT
    Nov 19 at 14:36











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f242014%2fhow-to-install-the-previous-version-of-a-deb-package-and-pin-it%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
8
down vote



accepted










You can tell apt-get to install a specific version of a package. For your example:



apt-get install subversion


you would append the version to the package name, e.g.,



apt-get install subversion=1.9.2-1


To find a package version, the Debian wiki page RollbackUpdate shows an example where that information is found in



http://www.debian.org/distrib/packages, i.e.,
https://www.debian.org/distrib/packages#search_packages



or (older versions) via



http://snapshot.debian.org/
http://snapshot.debian.org/package/subversion/



shows
http://snapshot.debian.org/package/subversion/1.9.2-2/
http://snapshot.debian.org/package/subversion/1.9.2-1/
http://snapshot.debian.org/package/subversion/1.9.1-1/



and so forth.



Finally, the Debian page shows (for its example) the change to make to /etc/apt/preferences to pin the package.






share|improve this answer





















  • See my answer for the eventual solution to the problem. It was necessary to specify the full name of the repo for the required version. I haven't unmarked the answer as it is correct with reference to the question.
    – vfclists
    Jun 3 '17 at 10:18















up vote
8
down vote



accepted










You can tell apt-get to install a specific version of a package. For your example:



apt-get install subversion


you would append the version to the package name, e.g.,



apt-get install subversion=1.9.2-1


To find a package version, the Debian wiki page RollbackUpdate shows an example where that information is found in



http://www.debian.org/distrib/packages, i.e.,
https://www.debian.org/distrib/packages#search_packages



or (older versions) via



http://snapshot.debian.org/
http://snapshot.debian.org/package/subversion/



shows
http://snapshot.debian.org/package/subversion/1.9.2-2/
http://snapshot.debian.org/package/subversion/1.9.2-1/
http://snapshot.debian.org/package/subversion/1.9.1-1/



and so forth.



Finally, the Debian page shows (for its example) the change to make to /etc/apt/preferences to pin the package.






share|improve this answer





















  • See my answer for the eventual solution to the problem. It was necessary to specify the full name of the repo for the required version. I haven't unmarked the answer as it is correct with reference to the question.
    – vfclists
    Jun 3 '17 at 10:18













up vote
8
down vote



accepted







up vote
8
down vote



accepted






You can tell apt-get to install a specific version of a package. For your example:



apt-get install subversion


you would append the version to the package name, e.g.,



apt-get install subversion=1.9.2-1


To find a package version, the Debian wiki page RollbackUpdate shows an example where that information is found in



http://www.debian.org/distrib/packages, i.e.,
https://www.debian.org/distrib/packages#search_packages



or (older versions) via



http://snapshot.debian.org/
http://snapshot.debian.org/package/subversion/



shows
http://snapshot.debian.org/package/subversion/1.9.2-2/
http://snapshot.debian.org/package/subversion/1.9.2-1/
http://snapshot.debian.org/package/subversion/1.9.1-1/



and so forth.



Finally, the Debian page shows (for its example) the change to make to /etc/apt/preferences to pin the package.






share|improve this answer












You can tell apt-get to install a specific version of a package. For your example:



apt-get install subversion


you would append the version to the package name, e.g.,



apt-get install subversion=1.9.2-1


To find a package version, the Debian wiki page RollbackUpdate shows an example where that information is found in



http://www.debian.org/distrib/packages, i.e.,
https://www.debian.org/distrib/packages#search_packages



or (older versions) via



http://snapshot.debian.org/
http://snapshot.debian.org/package/subversion/



shows
http://snapshot.debian.org/package/subversion/1.9.2-2/
http://snapshot.debian.org/package/subversion/1.9.2-1/
http://snapshot.debian.org/package/subversion/1.9.1-1/



and so forth.



Finally, the Debian page shows (for its example) the change to make to /etc/apt/preferences to pin the package.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 10 '15 at 1:13









Thomas Dickey

51.7k594164




51.7k594164












  • See my answer for the eventual solution to the problem. It was necessary to specify the full name of the repo for the required version. I haven't unmarked the answer as it is correct with reference to the question.
    – vfclists
    Jun 3 '17 at 10:18


















  • See my answer for the eventual solution to the problem. It was necessary to specify the full name of the repo for the required version. I haven't unmarked the answer as it is correct with reference to the question.
    – vfclists
    Jun 3 '17 at 10:18
















See my answer for the eventual solution to the problem. It was necessary to specify the full name of the repo for the required version. I haven't unmarked the answer as it is correct with reference to the question.
– vfclists
Jun 3 '17 at 10:18




See my answer for the eventual solution to the problem. It was necessary to specify the full name of the repo for the required version. I haven't unmarked the answer as it is correct with reference to the question.
– vfclists
Jun 3 '17 at 10:18












up vote
1
down vote













This is the eventual solution to the problem. The important thing is that the URL for the repository in the sources.list should be the full one containing the repo for the required package, in this case http://snapshot.debian.org/archive/debian/20150924T154447Z/. There is a good write up at http://mindref.blogspot.co.uk/2012/02/apt-revert-upgrade.html and also explained in a related question - What is the proper syntax for pinning a debian package to a repository and a version?



/etc/apt/sources.list.d/snapshots.list



# snapshot.debian.org
# added for subversion 1.9.2 subversion bug #803725
deb http://snapshot.debian.org/archive/debian/20150924T154447Z/ unstable main


/etc/apt/preferences.d/subversion



Package: subversion libsvn1
Pin: version 1.9.2-1
Pin-Priority: 700


apt-cache policy subversion



subversion:
Installed: 1.9.2-1
Candidate: 1.9.2-1
Package pin: 1.9.2-1
Version table:
1.9.2-3+b1 700
500 http://http.debian.net/debian/ unstable/main amd64 Packages
*** 1.9.2-1 700
500 http://snapshot.debian.org/archive/debian/20150924T154447Z/ unstable/main amd64 Packages
100 /var/lib/dpkg/status





share|improve this answer























  • In case this helps someone: I went back to last Ubuntu LTS using deb http://de.archive.ubuntu.com/ubuntu/ bionic universe and Package: openjfx Pin: release a=bionic Pin-Priority: 1001
    – JPT
    Nov 19 at 14:36















up vote
1
down vote













This is the eventual solution to the problem. The important thing is that the URL for the repository in the sources.list should be the full one containing the repo for the required package, in this case http://snapshot.debian.org/archive/debian/20150924T154447Z/. There is a good write up at http://mindref.blogspot.co.uk/2012/02/apt-revert-upgrade.html and also explained in a related question - What is the proper syntax for pinning a debian package to a repository and a version?



/etc/apt/sources.list.d/snapshots.list



# snapshot.debian.org
# added for subversion 1.9.2 subversion bug #803725
deb http://snapshot.debian.org/archive/debian/20150924T154447Z/ unstable main


/etc/apt/preferences.d/subversion



Package: subversion libsvn1
Pin: version 1.9.2-1
Pin-Priority: 700


apt-cache policy subversion



subversion:
Installed: 1.9.2-1
Candidate: 1.9.2-1
Package pin: 1.9.2-1
Version table:
1.9.2-3+b1 700
500 http://http.debian.net/debian/ unstable/main amd64 Packages
*** 1.9.2-1 700
500 http://snapshot.debian.org/archive/debian/20150924T154447Z/ unstable/main amd64 Packages
100 /var/lib/dpkg/status





share|improve this answer























  • In case this helps someone: I went back to last Ubuntu LTS using deb http://de.archive.ubuntu.com/ubuntu/ bionic universe and Package: openjfx Pin: release a=bionic Pin-Priority: 1001
    – JPT
    Nov 19 at 14:36













up vote
1
down vote










up vote
1
down vote









This is the eventual solution to the problem. The important thing is that the URL for the repository in the sources.list should be the full one containing the repo for the required package, in this case http://snapshot.debian.org/archive/debian/20150924T154447Z/. There is a good write up at http://mindref.blogspot.co.uk/2012/02/apt-revert-upgrade.html and also explained in a related question - What is the proper syntax for pinning a debian package to a repository and a version?



/etc/apt/sources.list.d/snapshots.list



# snapshot.debian.org
# added for subversion 1.9.2 subversion bug #803725
deb http://snapshot.debian.org/archive/debian/20150924T154447Z/ unstable main


/etc/apt/preferences.d/subversion



Package: subversion libsvn1
Pin: version 1.9.2-1
Pin-Priority: 700


apt-cache policy subversion



subversion:
Installed: 1.9.2-1
Candidate: 1.9.2-1
Package pin: 1.9.2-1
Version table:
1.9.2-3+b1 700
500 http://http.debian.net/debian/ unstable/main amd64 Packages
*** 1.9.2-1 700
500 http://snapshot.debian.org/archive/debian/20150924T154447Z/ unstable/main amd64 Packages
100 /var/lib/dpkg/status





share|improve this answer














This is the eventual solution to the problem. The important thing is that the URL for the repository in the sources.list should be the full one containing the repo for the required package, in this case http://snapshot.debian.org/archive/debian/20150924T154447Z/. There is a good write up at http://mindref.blogspot.co.uk/2012/02/apt-revert-upgrade.html and also explained in a related question - What is the proper syntax for pinning a debian package to a repository and a version?



/etc/apt/sources.list.d/snapshots.list



# snapshot.debian.org
# added for subversion 1.9.2 subversion bug #803725
deb http://snapshot.debian.org/archive/debian/20150924T154447Z/ unstable main


/etc/apt/preferences.d/subversion



Package: subversion libsvn1
Pin: version 1.9.2-1
Pin-Priority: 700


apt-cache policy subversion



subversion:
Installed: 1.9.2-1
Candidate: 1.9.2-1
Package pin: 1.9.2-1
Version table:
1.9.2-3+b1 700
500 http://http.debian.net/debian/ unstable/main amd64 Packages
*** 1.9.2-1 700
500 http://snapshot.debian.org/archive/debian/20150924T154447Z/ unstable/main amd64 Packages
100 /var/lib/dpkg/status






share|improve this answer














share|improve this answer



share|improve this answer








edited Jun 3 '17 at 10:24

























answered Nov 14 '15 at 7:46









vfclists

2,57452744




2,57452744












  • In case this helps someone: I went back to last Ubuntu LTS using deb http://de.archive.ubuntu.com/ubuntu/ bionic universe and Package: openjfx Pin: release a=bionic Pin-Priority: 1001
    – JPT
    Nov 19 at 14:36


















  • In case this helps someone: I went back to last Ubuntu LTS using deb http://de.archive.ubuntu.com/ubuntu/ bionic universe and Package: openjfx Pin: release a=bionic Pin-Priority: 1001
    – JPT
    Nov 19 at 14:36
















In case this helps someone: I went back to last Ubuntu LTS using deb http://de.archive.ubuntu.com/ubuntu/ bionic universe and Package: openjfx Pin: release a=bionic Pin-Priority: 1001
– JPT
Nov 19 at 14:36




In case this helps someone: I went back to last Ubuntu LTS using deb http://de.archive.ubuntu.com/ubuntu/ bionic universe and Package: openjfx Pin: release a=bionic Pin-Priority: 1001
– JPT
Nov 19 at 14:36


















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • 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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2funix.stackexchange.com%2fquestions%2f242014%2fhow-to-install-the-previous-version-of-a-deb-package-and-pin-it%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

Morgemoulin

Scott Moir

Souastre