Score:0

Unable to install gcc-8 g++-8 in Ubuntu 20.04

jp flag
Tak

I am trying to install gcc-8 g++-8 on my Ubunutu 20.04 but I cannot as shown below. Any advice?

sudo apt install gcc-8 g++-8
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'clang-8-doc' for regex 'g++-8'
Note, selecting 'python-clang-8' for regex 'g++-8'
Note, selecting 'clang-8' for regex 'g++-8'
Note, selecting 'clang-8-examples' for regex 'g++-8'
Note, selecting 'libclang-8-dev' for regex 'g++-8'
E: Unable to locate package gcc-8
karel avatar
sa flag
Does this answer your question? [How do I enable the "Universe" repository?](https://askubuntu.com/questions/148638/how-do-i-enable-the-universe-repository)
Score:0
pl flag

There are 2 ways to accomplish this:

  • Install GCC and G++ using by doing:
sudo add-apt-repository universe 
sudo apt update 
sudo apt install gcc g++
  • You can do it with dpkg if it doesn't work:
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gcc-8/gcc-8_8.4.0-3ubuntu2_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gcc-8/g++-8_8.4.0-3ubuntu2_amd64.deb
sudo dpkg -i g++-8_8.4.0-3ubuntu2_amd64.deb gcc-8_8.4.0-3ubuntu2_amd64.deb
sudo apt --fix-missing install
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.