Problem installing gcc-6.3.0

Asked by Ritesh

I tried installing gcc-6.3.0 by following steps below:

sudo add-apt-repository ppa:jonathonf/gcc-6.3
sudo apt-get update
sudo apt-get install gcc-6

I got the following error:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gcc-6 : Depends: cpp-6 (= 6.3.0-21ubuntu1~16.04.york0) but it is not going to be installed
         Depends: gcc-6-base (= 6.3.0-21ubuntu1~16.04.york0) but 6.0.1-0ubuntu1 is to be installed
         Depends: libcc1-0 (>= 6.3.0-21ubuntu1~16.04.york0) but 5.4.0-6ubuntu1~16.04.9 is to be installed
         Depends: libgcc-6-dev (= 6.3.0-21ubuntu1~16.04.york0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@c3a52ef38472:/# Write failed: Broken pipe

Am I missing something?

Thanks!

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

1. This question was created in the area for the launchpad hosting service but deals with an Ubuntu problem. I have moved it to the right area.

2. Which Ubuntu release and which CPU architecture are you using? Please provide the output that you receive for the commands
uname -a
lsb_release -crid

3. You are using software from a PPA instead of the packages provided in the official Ubuntu sources. Whenever you have a problem with a PPA you should contact the provider of the PPA. Ubuntu support on launchpad cannot help with all different PPAs. Why do you use the PPA version and not the standard Ubuntu-provided one?

Nevertheless the output of the following commands might help identifying the root cause:

apt-cache policy gcc-6 cpp-6 gcc-6-base libcc1-0 libgcc-6-dev
apt-get --simulate install gcc-6 cpp-6 gcc-6-base libcc1-0 libgcc-6-dev

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.