Preventing DPKG from upgrading package being installed
up vote
0
down vote
favorite
I'm fairly new to the Linux world, so forgive me if the question is basic, I couldn't find an answer elsewhere.
When I run dpkg to install the version 5.1.14 of Virtualbox via sudo dpkg -i ./debfile
followed by sudo apt install -f
, i get:
The following additional packages will be installed:
virtualbox-5.1
Recommended packages:
libsdl-ttf2.0-0
The following packages will be upgraded:
virtualbox-5.1
The installed package ends up being version 5.1.32, which I do not want.
I know how to prevent a package from being upgraded after it's installed, but not while it's being installed.
I'm also forced to use dpkg because both apt and gdebi don't work for some reason, possibly because the version I want to install was meant for Ubuntu 16.10, and it's possible Virtualbox at version 5.1.14 won't work for me at all on Ubuntu 17.10, but I wish to try it anyway.
So, is there a way to force the installation of my preferred version, without it getting upgraded automatically?
upgrade software-installation virtualbox dpkg
add a comment |Â
up vote
0
down vote
favorite
I'm fairly new to the Linux world, so forgive me if the question is basic, I couldn't find an answer elsewhere.
When I run dpkg to install the version 5.1.14 of Virtualbox via sudo dpkg -i ./debfile
followed by sudo apt install -f
, i get:
The following additional packages will be installed:
virtualbox-5.1
Recommended packages:
libsdl-ttf2.0-0
The following packages will be upgraded:
virtualbox-5.1
The installed package ends up being version 5.1.32, which I do not want.
I know how to prevent a package from being upgraded after it's installed, but not while it's being installed.
I'm also forced to use dpkg because both apt and gdebi don't work for some reason, possibly because the version I want to install was meant for Ubuntu 16.10, and it's possible Virtualbox at version 5.1.14 won't work for me at all on Ubuntu 17.10, but I wish to try it anyway.
So, is there a way to force the installation of my preferred version, without it getting upgraded automatically?
upgrade software-installation virtualbox dpkg
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm fairly new to the Linux world, so forgive me if the question is basic, I couldn't find an answer elsewhere.
When I run dpkg to install the version 5.1.14 of Virtualbox via sudo dpkg -i ./debfile
followed by sudo apt install -f
, i get:
The following additional packages will be installed:
virtualbox-5.1
Recommended packages:
libsdl-ttf2.0-0
The following packages will be upgraded:
virtualbox-5.1
The installed package ends up being version 5.1.32, which I do not want.
I know how to prevent a package from being upgraded after it's installed, but not while it's being installed.
I'm also forced to use dpkg because both apt and gdebi don't work for some reason, possibly because the version I want to install was meant for Ubuntu 16.10, and it's possible Virtualbox at version 5.1.14 won't work for me at all on Ubuntu 17.10, but I wish to try it anyway.
So, is there a way to force the installation of my preferred version, without it getting upgraded automatically?
upgrade software-installation virtualbox dpkg
I'm fairly new to the Linux world, so forgive me if the question is basic, I couldn't find an answer elsewhere.
When I run dpkg to install the version 5.1.14 of Virtualbox via sudo dpkg -i ./debfile
followed by sudo apt install -f
, i get:
The following additional packages will be installed:
virtualbox-5.1
Recommended packages:
libsdl-ttf2.0-0
The following packages will be upgraded:
virtualbox-5.1
The installed package ends up being version 5.1.32, which I do not want.
I know how to prevent a package from being upgraded after it's installed, but not while it's being installed.
I'm also forced to use dpkg because both apt and gdebi don't work for some reason, possibly because the version I want to install was meant for Ubuntu 16.10, and it's possible Virtualbox at version 5.1.14 won't work for me at all on Ubuntu 17.10, but I wish to try it anyway.
So, is there a way to force the installation of my preferred version, without it getting upgraded automatically?
upgrade software-installation virtualbox dpkg
upgrade software-installation virtualbox dpkg
asked Feb 3 at 11:11
Blackness
31
31
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
Since there are not any missing depends, sudo apt-get install -f
is unnecessary.
The following command will prevent changes to the package:
sudo apt-mark hold virtualbox-5.1
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Since there are not any missing depends, sudo apt-get install -f
is unnecessary.
The following command will prevent changes to the package:
sudo apt-mark hold virtualbox-5.1
add a comment |Â
up vote
1
down vote
accepted
Since there are not any missing depends, sudo apt-get install -f
is unnecessary.
The following command will prevent changes to the package:
sudo apt-mark hold virtualbox-5.1
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Since there are not any missing depends, sudo apt-get install -f
is unnecessary.
The following command will prevent changes to the package:
sudo apt-mark hold virtualbox-5.1
Since there are not any missing depends, sudo apt-get install -f
is unnecessary.
The following command will prevent changes to the package:
sudo apt-mark hold virtualbox-5.1
answered Feb 3 at 11:50
ravery
5,28451131
5,28451131
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1002640%2fpreventing-dpkg-from-upgrading-package-being-installed%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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