Aptitude - choose resolution strategy (ie. upgrade-to-unstable before remove)
up vote
0
down vote
favorite
Is it possible to choose default (or per-launch) aptitude "unmet dependencies" resolution strategy?
For example to have aptitude first offer upgrade-to-unstable/install-from-unstable (sid) than removal of packages, that have unmet dependencies?
Example data from moments ago (debian 9 stretch, with sid repository)
Initial situation presented to aptitude
# aptitude dist-upgrade
The following NEW packages will be installed:
libboost-program-options1.67.0{a}
The following packages will be upgraded:
libgnuradio-analog3.7.13{b} libgnuradio-audio3.7.13{b} libgnuradio-blocks3.7.13{b} libgnuradio-digital3.7.13{b} libgnuradio-fcd3.7.13{b} libgnuradio-fft3.7.13{b}
libgnuradio-filter3.7.13{b} libgnuradio-pmt3.7.13{b} libgnuradio-runtime3.7.13{b} libgnuradio-uhd3.7.13{b}
10 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,387 kB of archives. After unpacking 2,656 kB will be used.
The following packages have unmet dependencies:
libgnuradio-analog3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-runtime3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-blocks3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-uhd3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-filter3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-digital3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-fft3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-pmt3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-audio3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-fcd3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
Aptitude offered solutions in order
- keep packages at current version
- remove some packages, and keep others at current version
- remove some packages, keep some at current version, keep some dependencies unresolved
- remove all conflicting packages, keep some dependencies unresolved
- install missing dependency from non-priority channel (sid, 100) and do the upgrade of all packages as requested
Final solution
The following actions will resolve these dependencies:
Install the following packages:
1) libboost-regex1.67.0 [1.67.0-10 (unstable)]
Accept this solution? [Y/n/q/?] Y
The following NEW packages will be installed:
libboost-program-options1.67.0{a} libboost-regex1.67.0{a}
The following packages will be upgraded:
libgnuradio-analog3.7.13 libgnuradio-audio3.7.13 libgnuradio-blocks3.7.13 libgnuradio-digital3.7.13 libgnuradio-fcd3.7.13 libgnuradio-fft3.7.13 libgnuradio-filter3.7.13
libgnuradio-pmt3.7.13 libgnuradio-runtime3.7.13 libgnuradio-uhd3.7.13
10 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,871 kB of archives. After unpacking 5,837 kB will be used.
Valid solution to my problem, probably isn't one of these:
- Change sid channel priority (/etc/apt/preferences) to equal weight as stable/backports - this would shift the whole system to unstable
- Running
aptitude -t sid dist-upgrade
as this would upgrade whole system from unstable channel
So questions are:
- Is it possible to configure aptitude, to use different resolution strategy?
Is there a strategy, that offers first to install/upgrade-from-unstable than excessive package removal? (ie. upgrade of unstable packages with unstable dependencies)
Is there a strategy, that offers first to downgrade-to-stable than excessive package removal? (ie. for downgrading package and dependencies from unstable to stable)
linux ubuntu debian apt aptitude
add a comment |
up vote
0
down vote
favorite
Is it possible to choose default (or per-launch) aptitude "unmet dependencies" resolution strategy?
For example to have aptitude first offer upgrade-to-unstable/install-from-unstable (sid) than removal of packages, that have unmet dependencies?
Example data from moments ago (debian 9 stretch, with sid repository)
Initial situation presented to aptitude
# aptitude dist-upgrade
The following NEW packages will be installed:
libboost-program-options1.67.0{a}
The following packages will be upgraded:
libgnuradio-analog3.7.13{b} libgnuradio-audio3.7.13{b} libgnuradio-blocks3.7.13{b} libgnuradio-digital3.7.13{b} libgnuradio-fcd3.7.13{b} libgnuradio-fft3.7.13{b}
libgnuradio-filter3.7.13{b} libgnuradio-pmt3.7.13{b} libgnuradio-runtime3.7.13{b} libgnuradio-uhd3.7.13{b}
10 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,387 kB of archives. After unpacking 2,656 kB will be used.
The following packages have unmet dependencies:
libgnuradio-analog3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-runtime3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-blocks3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-uhd3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-filter3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-digital3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-fft3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-pmt3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-audio3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-fcd3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
Aptitude offered solutions in order
- keep packages at current version
- remove some packages, and keep others at current version
- remove some packages, keep some at current version, keep some dependencies unresolved
- remove all conflicting packages, keep some dependencies unresolved
- install missing dependency from non-priority channel (sid, 100) and do the upgrade of all packages as requested
Final solution
The following actions will resolve these dependencies:
Install the following packages:
1) libboost-regex1.67.0 [1.67.0-10 (unstable)]
Accept this solution? [Y/n/q/?] Y
The following NEW packages will be installed:
libboost-program-options1.67.0{a} libboost-regex1.67.0{a}
The following packages will be upgraded:
libgnuradio-analog3.7.13 libgnuradio-audio3.7.13 libgnuradio-blocks3.7.13 libgnuradio-digital3.7.13 libgnuradio-fcd3.7.13 libgnuradio-fft3.7.13 libgnuradio-filter3.7.13
libgnuradio-pmt3.7.13 libgnuradio-runtime3.7.13 libgnuradio-uhd3.7.13
10 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,871 kB of archives. After unpacking 5,837 kB will be used.
Valid solution to my problem, probably isn't one of these:
- Change sid channel priority (/etc/apt/preferences) to equal weight as stable/backports - this would shift the whole system to unstable
- Running
aptitude -t sid dist-upgrade
as this would upgrade whole system from unstable channel
So questions are:
- Is it possible to configure aptitude, to use different resolution strategy?
Is there a strategy, that offers first to install/upgrade-from-unstable than excessive package removal? (ie. upgrade of unstable packages with unstable dependencies)
Is there a strategy, that offers first to downgrade-to-stable than excessive package removal? (ie. for downgrading package and dependencies from unstable to stable)
linux ubuntu debian apt aptitude
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Is it possible to choose default (or per-launch) aptitude "unmet dependencies" resolution strategy?
For example to have aptitude first offer upgrade-to-unstable/install-from-unstable (sid) than removal of packages, that have unmet dependencies?
Example data from moments ago (debian 9 stretch, with sid repository)
Initial situation presented to aptitude
# aptitude dist-upgrade
The following NEW packages will be installed:
libboost-program-options1.67.0{a}
The following packages will be upgraded:
libgnuradio-analog3.7.13{b} libgnuradio-audio3.7.13{b} libgnuradio-blocks3.7.13{b} libgnuradio-digital3.7.13{b} libgnuradio-fcd3.7.13{b} libgnuradio-fft3.7.13{b}
libgnuradio-filter3.7.13{b} libgnuradio-pmt3.7.13{b} libgnuradio-runtime3.7.13{b} libgnuradio-uhd3.7.13{b}
10 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,387 kB of archives. After unpacking 2,656 kB will be used.
The following packages have unmet dependencies:
libgnuradio-analog3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-runtime3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-blocks3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-uhd3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-filter3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-digital3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-fft3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-pmt3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-audio3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-fcd3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
Aptitude offered solutions in order
- keep packages at current version
- remove some packages, and keep others at current version
- remove some packages, keep some at current version, keep some dependencies unresolved
- remove all conflicting packages, keep some dependencies unresolved
- install missing dependency from non-priority channel (sid, 100) and do the upgrade of all packages as requested
Final solution
The following actions will resolve these dependencies:
Install the following packages:
1) libboost-regex1.67.0 [1.67.0-10 (unstable)]
Accept this solution? [Y/n/q/?] Y
The following NEW packages will be installed:
libboost-program-options1.67.0{a} libboost-regex1.67.0{a}
The following packages will be upgraded:
libgnuradio-analog3.7.13 libgnuradio-audio3.7.13 libgnuradio-blocks3.7.13 libgnuradio-digital3.7.13 libgnuradio-fcd3.7.13 libgnuradio-fft3.7.13 libgnuradio-filter3.7.13
libgnuradio-pmt3.7.13 libgnuradio-runtime3.7.13 libgnuradio-uhd3.7.13
10 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,871 kB of archives. After unpacking 5,837 kB will be used.
Valid solution to my problem, probably isn't one of these:
- Change sid channel priority (/etc/apt/preferences) to equal weight as stable/backports - this would shift the whole system to unstable
- Running
aptitude -t sid dist-upgrade
as this would upgrade whole system from unstable channel
So questions are:
- Is it possible to configure aptitude, to use different resolution strategy?
Is there a strategy, that offers first to install/upgrade-from-unstable than excessive package removal? (ie. upgrade of unstable packages with unstable dependencies)
Is there a strategy, that offers first to downgrade-to-stable than excessive package removal? (ie. for downgrading package and dependencies from unstable to stable)
linux ubuntu debian apt aptitude
Is it possible to choose default (or per-launch) aptitude "unmet dependencies" resolution strategy?
For example to have aptitude first offer upgrade-to-unstable/install-from-unstable (sid) than removal of packages, that have unmet dependencies?
Example data from moments ago (debian 9 stretch, with sid repository)
Initial situation presented to aptitude
# aptitude dist-upgrade
The following NEW packages will be installed:
libboost-program-options1.67.0{a}
The following packages will be upgraded:
libgnuradio-analog3.7.13{b} libgnuradio-audio3.7.13{b} libgnuradio-blocks3.7.13{b} libgnuradio-digital3.7.13{b} libgnuradio-fcd3.7.13{b} libgnuradio-fft3.7.13{b}
libgnuradio-filter3.7.13{b} libgnuradio-pmt3.7.13{b} libgnuradio-runtime3.7.13{b} libgnuradio-uhd3.7.13{b}
10 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,387 kB of archives. After unpacking 2,656 kB will be used.
The following packages have unmet dependencies:
libgnuradio-analog3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-runtime3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-blocks3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-uhd3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-filter3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-digital3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-fft3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-pmt3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-audio3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
libgnuradio-fcd3.7.13 : Depends: libboost-regex1.67.0 (>= 1.67.0-10) but it is not going to be installed
Aptitude offered solutions in order
- keep packages at current version
- remove some packages, and keep others at current version
- remove some packages, keep some at current version, keep some dependencies unresolved
- remove all conflicting packages, keep some dependencies unresolved
- install missing dependency from non-priority channel (sid, 100) and do the upgrade of all packages as requested
Final solution
The following actions will resolve these dependencies:
Install the following packages:
1) libboost-regex1.67.0 [1.67.0-10 (unstable)]
Accept this solution? [Y/n/q/?] Y
The following NEW packages will be installed:
libboost-program-options1.67.0{a} libboost-regex1.67.0{a}
The following packages will be upgraded:
libgnuradio-analog3.7.13 libgnuradio-audio3.7.13 libgnuradio-blocks3.7.13 libgnuradio-digital3.7.13 libgnuradio-fcd3.7.13 libgnuradio-fft3.7.13 libgnuradio-filter3.7.13
libgnuradio-pmt3.7.13 libgnuradio-runtime3.7.13 libgnuradio-uhd3.7.13
10 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,871 kB of archives. After unpacking 5,837 kB will be used.
Valid solution to my problem, probably isn't one of these:
- Change sid channel priority (/etc/apt/preferences) to equal weight as stable/backports - this would shift the whole system to unstable
- Running
aptitude -t sid dist-upgrade
as this would upgrade whole system from unstable channel
So questions are:
- Is it possible to configure aptitude, to use different resolution strategy?
Is there a strategy, that offers first to install/upgrade-from-unstable than excessive package removal? (ie. upgrade of unstable packages with unstable dependencies)
Is there a strategy, that offers first to downgrade-to-stable than excessive package removal? (ie. for downgrading package and dependencies from unstable to stable)
linux ubuntu debian apt aptitude
linux ubuntu debian apt aptitude
asked Nov 19 at 9:40
Marek Sebera
1407
1407
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376645%2faptitude-choose-resolution-strategy-ie-upgrade-to-unstable-before-remove%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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