Upgrade gcc (4:7.3.0-3ubuntu2) to gcc-8 (8.2.0) in ubuntu 18.04
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
0
down vote
favorite
Has recently upgraded my ubuntu from 16.04 to 18.04.1 LTS. When trying to run vmware I am getting this message: gcc version 8.2.0 not found
so I checked gcc v. and I found: (Ubuntu 7.3.0-16ubuntu3)
.
I tried to install gcc-8 following these steps:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test && sudo apt update &&
sudo apt install -y gcc-8
But I got this: The following packages have unmet dependencies: gcc-8: depends:
cpp-8, gcc-8-base and libgcc-8-dev
So I downloaded gcc-8 from here: https://packages.ubuntu.com/bionic/gcc-8
, But I don't know how to install it and if this is the right way?!
Any suggestions or help is very appreciated - I don't know how to do it.
Build-essential: newest v.: 12.4ubuntu1
Kernel: 4.17.12-041712-generic
package-management upgrade 18.04 gcc
 |Â
show 2 more comments
up vote
0
down vote
favorite
Has recently upgraded my ubuntu from 16.04 to 18.04.1 LTS. When trying to run vmware I am getting this message: gcc version 8.2.0 not found
so I checked gcc v. and I found: (Ubuntu 7.3.0-16ubuntu3)
.
I tried to install gcc-8 following these steps:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test && sudo apt update &&
sudo apt install -y gcc-8
But I got this: The following packages have unmet dependencies: gcc-8: depends:
cpp-8, gcc-8-base and libgcc-8-dev
So I downloaded gcc-8 from here: https://packages.ubuntu.com/bionic/gcc-8
, But I don't know how to install it and if this is the right way?!
Any suggestions or help is very appreciated - I don't know how to do it.
Build-essential: newest v.: 12.4ubuntu1
Kernel: 4.17.12-041712-generic
package-management upgrade 18.04 gcc
1
The second link you provided tells you the package is available in the 'universe' repository for bionic (18.04), so can be installed withsudo apt install gcc-8
(assuming you have 'universe' repository enabled; the dependencies are also found in universe) ie.apt
will do the download for you & then install. Do you have 'universe' enabled? Refer help.ubuntu.com/community/Repositories/Ubuntu for help with repositories ; at the first picture you need to have the second box (universe) ticked.
â guiverc
14 hours ago
yes..I haveuniverse
enabled. I tried installing gcc-8 using aptitude and it seems installed(/usr/bin/gcc-8), but when I check the v. i still getting 7.3 so I tried to update the alternatives:sudo update-alternatives --config gcc
, but i don't found the choice of gcc-8 (just gcc-5, 6, or 7)!!! any suggestions?
â carl
14 hours ago
I forgot to add this: I tried nowsudo apt install gcc-8
and i am getting:gcc-8 is already the newest version (8.1.0-1ubuntu1)
!!!
â carl
14 hours ago
I only use the defaultgcc
, so this is from looking only. Adpkg-query -S gcc-8
shows the file "/usr/bin/gcc-8" is installed (& as you stated); so I'd guessgcc-8
would run it. Is that what you tried? Otherwise this was found online - askubuntu.com/questions/1028601/⦠(see answer)
â guiverc
13 hours ago
1
AFAIK additional versions of gcc will not overwrite the default/usr/bin/gcc
symlink - if you gcc-8 to be the default, you will need to symlink it yourself (or place gcc under the control of update-alternatives). Otherwise, just usegcc-8
as the program name when you want to run it
â steeldriver
13 hours ago
 |Â
show 2 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Has recently upgraded my ubuntu from 16.04 to 18.04.1 LTS. When trying to run vmware I am getting this message: gcc version 8.2.0 not found
so I checked gcc v. and I found: (Ubuntu 7.3.0-16ubuntu3)
.
I tried to install gcc-8 following these steps:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test && sudo apt update &&
sudo apt install -y gcc-8
But I got this: The following packages have unmet dependencies: gcc-8: depends:
cpp-8, gcc-8-base and libgcc-8-dev
So I downloaded gcc-8 from here: https://packages.ubuntu.com/bionic/gcc-8
, But I don't know how to install it and if this is the right way?!
Any suggestions or help is very appreciated - I don't know how to do it.
Build-essential: newest v.: 12.4ubuntu1
Kernel: 4.17.12-041712-generic
package-management upgrade 18.04 gcc
Has recently upgraded my ubuntu from 16.04 to 18.04.1 LTS. When trying to run vmware I am getting this message: gcc version 8.2.0 not found
so I checked gcc v. and I found: (Ubuntu 7.3.0-16ubuntu3)
.
I tried to install gcc-8 following these steps:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test && sudo apt update &&
sudo apt install -y gcc-8
But I got this: The following packages have unmet dependencies: gcc-8: depends:
cpp-8, gcc-8-base and libgcc-8-dev
So I downloaded gcc-8 from here: https://packages.ubuntu.com/bionic/gcc-8
, But I don't know how to install it and if this is the right way?!
Any suggestions or help is very appreciated - I don't know how to do it.
Build-essential: newest v.: 12.4ubuntu1
Kernel: 4.17.12-041712-generic
package-management upgrade 18.04 gcc
asked 14 hours ago
carl
11
11
1
The second link you provided tells you the package is available in the 'universe' repository for bionic (18.04), so can be installed withsudo apt install gcc-8
(assuming you have 'universe' repository enabled; the dependencies are also found in universe) ie.apt
will do the download for you & then install. Do you have 'universe' enabled? Refer help.ubuntu.com/community/Repositories/Ubuntu for help with repositories ; at the first picture you need to have the second box (universe) ticked.
â guiverc
14 hours ago
yes..I haveuniverse
enabled. I tried installing gcc-8 using aptitude and it seems installed(/usr/bin/gcc-8), but when I check the v. i still getting 7.3 so I tried to update the alternatives:sudo update-alternatives --config gcc
, but i don't found the choice of gcc-8 (just gcc-5, 6, or 7)!!! any suggestions?
â carl
14 hours ago
I forgot to add this: I tried nowsudo apt install gcc-8
and i am getting:gcc-8 is already the newest version (8.1.0-1ubuntu1)
!!!
â carl
14 hours ago
I only use the defaultgcc
, so this is from looking only. Adpkg-query -S gcc-8
shows the file "/usr/bin/gcc-8" is installed (& as you stated); so I'd guessgcc-8
would run it. Is that what you tried? Otherwise this was found online - askubuntu.com/questions/1028601/⦠(see answer)
â guiverc
13 hours ago
1
AFAIK additional versions of gcc will not overwrite the default/usr/bin/gcc
symlink - if you gcc-8 to be the default, you will need to symlink it yourself (or place gcc under the control of update-alternatives). Otherwise, just usegcc-8
as the program name when you want to run it
â steeldriver
13 hours ago
 |Â
show 2 more comments
1
The second link you provided tells you the package is available in the 'universe' repository for bionic (18.04), so can be installed withsudo apt install gcc-8
(assuming you have 'universe' repository enabled; the dependencies are also found in universe) ie.apt
will do the download for you & then install. Do you have 'universe' enabled? Refer help.ubuntu.com/community/Repositories/Ubuntu for help with repositories ; at the first picture you need to have the second box (universe) ticked.
â guiverc
14 hours ago
yes..I haveuniverse
enabled. I tried installing gcc-8 using aptitude and it seems installed(/usr/bin/gcc-8), but when I check the v. i still getting 7.3 so I tried to update the alternatives:sudo update-alternatives --config gcc
, but i don't found the choice of gcc-8 (just gcc-5, 6, or 7)!!! any suggestions?
â carl
14 hours ago
I forgot to add this: I tried nowsudo apt install gcc-8
and i am getting:gcc-8 is already the newest version (8.1.0-1ubuntu1)
!!!
â carl
14 hours ago
I only use the defaultgcc
, so this is from looking only. Adpkg-query -S gcc-8
shows the file "/usr/bin/gcc-8" is installed (& as you stated); so I'd guessgcc-8
would run it. Is that what you tried? Otherwise this was found online - askubuntu.com/questions/1028601/⦠(see answer)
â guiverc
13 hours ago
1
AFAIK additional versions of gcc will not overwrite the default/usr/bin/gcc
symlink - if you gcc-8 to be the default, you will need to symlink it yourself (or place gcc under the control of update-alternatives). Otherwise, just usegcc-8
as the program name when you want to run it
â steeldriver
13 hours ago
1
1
The second link you provided tells you the package is available in the 'universe' repository for bionic (18.04), so can be installed with
sudo apt install gcc-8
(assuming you have 'universe' repository enabled; the dependencies are also found in universe) ie. apt
will do the download for you & then install. Do you have 'universe' enabled? Refer help.ubuntu.com/community/Repositories/Ubuntu for help with repositories ; at the first picture you need to have the second box (universe) ticked.â guiverc
14 hours ago
The second link you provided tells you the package is available in the 'universe' repository for bionic (18.04), so can be installed with
sudo apt install gcc-8
(assuming you have 'universe' repository enabled; the dependencies are also found in universe) ie. apt
will do the download for you & then install. Do you have 'universe' enabled? Refer help.ubuntu.com/community/Repositories/Ubuntu for help with repositories ; at the first picture you need to have the second box (universe) ticked.â guiverc
14 hours ago
yes..I have
universe
enabled. I tried installing gcc-8 using aptitude and it seems installed(/usr/bin/gcc-8), but when I check the v. i still getting 7.3 so I tried to update the alternatives: sudo update-alternatives --config gcc
, but i don't found the choice of gcc-8 (just gcc-5, 6, or 7)!!! any suggestions?â carl
14 hours ago
yes..I have
universe
enabled. I tried installing gcc-8 using aptitude and it seems installed(/usr/bin/gcc-8), but when I check the v. i still getting 7.3 so I tried to update the alternatives: sudo update-alternatives --config gcc
, but i don't found the choice of gcc-8 (just gcc-5, 6, or 7)!!! any suggestions?â carl
14 hours ago
I forgot to add this: I tried now
sudo apt install gcc-8
and i am getting: gcc-8 is already the newest version (8.1.0-1ubuntu1)
!!!â carl
14 hours ago
I forgot to add this: I tried now
sudo apt install gcc-8
and i am getting: gcc-8 is already the newest version (8.1.0-1ubuntu1)
!!!â carl
14 hours ago
I only use the default
gcc
, so this is from looking only. A dpkg-query -S gcc-8
shows the file "/usr/bin/gcc-8" is installed (& as you stated); so I'd guess gcc-8
would run it. Is that what you tried? Otherwise this was found online - askubuntu.com/questions/1028601/⦠(see answer)â guiverc
13 hours ago
I only use the default
gcc
, so this is from looking only. A dpkg-query -S gcc-8
shows the file "/usr/bin/gcc-8" is installed (& as you stated); so I'd guess gcc-8
would run it. Is that what you tried? Otherwise this was found online - askubuntu.com/questions/1028601/⦠(see answer)â guiverc
13 hours ago
1
1
AFAIK additional versions of gcc will not overwrite the default
/usr/bin/gcc
symlink - if you gcc-8 to be the default, you will need to symlink it yourself (or place gcc under the control of update-alternatives). Otherwise, just use gcc-8
as the program name when you want to run itâ steeldriver
13 hours ago
AFAIK additional versions of gcc will not overwrite the default
/usr/bin/gcc
symlink - if you gcc-8 to be the default, you will need to symlink it yourself (or place gcc under the control of update-alternatives). Otherwise, just use gcc-8
as the program name when you want to run itâ steeldriver
13 hours ago
 |Â
show 2 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f1062276%2fupgrade-gcc-47-3-0-3ubuntu2-to-gcc-8-8-2-0-in-ubuntu-18-04%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
1
The second link you provided tells you the package is available in the 'universe' repository for bionic (18.04), so can be installed with
sudo apt install gcc-8
(assuming you have 'universe' repository enabled; the dependencies are also found in universe) ie.apt
will do the download for you & then install. Do you have 'universe' enabled? Refer help.ubuntu.com/community/Repositories/Ubuntu for help with repositories ; at the first picture you need to have the second box (universe) ticked.â guiverc
14 hours ago
yes..I have
universe
enabled. I tried installing gcc-8 using aptitude and it seems installed(/usr/bin/gcc-8), but when I check the v. i still getting 7.3 so I tried to update the alternatives:sudo update-alternatives --config gcc
, but i don't found the choice of gcc-8 (just gcc-5, 6, or 7)!!! any suggestions?â carl
14 hours ago
I forgot to add this: I tried now
sudo apt install gcc-8
and i am getting:gcc-8 is already the newest version (8.1.0-1ubuntu1)
!!!â carl
14 hours ago
I only use the default
gcc
, so this is from looking only. Adpkg-query -S gcc-8
shows the file "/usr/bin/gcc-8" is installed (& as you stated); so I'd guessgcc-8
would run it. Is that what you tried? Otherwise this was found online - askubuntu.com/questions/1028601/⦠(see answer)â guiverc
13 hours ago
1
AFAIK additional versions of gcc will not overwrite the default
/usr/bin/gcc
symlink - if you gcc-8 to be the default, you will need to symlink it yourself (or place gcc under the control of update-alternatives). Otherwise, just usegcc-8
as the program name when you want to run itâ steeldriver
13 hours ago