package gcc 4:7.3.0-3ubuntu2.1 failed to install/upgrade: installed gcc package post-installation script subprocess returned error exit status 2

Bug #1796462 reported by vinod sukhadeve
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-defaults (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

i dont understand..i am new to ubuntu.
my c++ programm is not compiled..

ProblemType: Package
DistroRelease: Ubuntu 18.04
Package: gcc 4:7.3.0-3ubuntu2.1
ProcVersionSignature: Ubuntu 4.15.0-34.37-generic 4.15.18
Uname: Linux 4.15.0-34-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
Date: Sat Oct 6 14:04:57 2018
DuplicateSignature:
 package:gcc:4:7.3.0-3ubuntu2.1
 Setting up gcc (4:7.3.0-3ubuntu2.1) ...
 update-alternatives: error: alternative path /usr/bin/gcc doesn't exist
 dpkg: error processing package gcc (--configure):
  installed gcc package post-installation script subprocess returned error exit status 2
ErrorMessage: installed gcc package post-installation script subprocess returned error exit status 2
InstallationDate: Installed on 2018-07-04 (93 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3ubuntu1
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
RelatedPackageVersions:
 dpkg 1.19.0.5ubuntu2
 apt 1.6.3ubuntu0.1
SourcePackage: gcc-defaults
Title: package gcc 4:7.3.0-3ubuntu2.1 failed to install/upgrade: installed gcc package post-installation script subprocess returned error exit status 2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
vinod sukhadeve (sukhadeve1) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Matthias Klose (doko) wrote :

you messed around with the gcc symlink. don't do this, and revert what you did.

 Setting up gcc (4:7.3.0-3ubuntu2.1) ...
 update-alternatives: error: alternative path /usr/bin/gcc doesn't exist
 dpkg: error processing package gcc (--configure):
  installed gcc package post-installation script subprocess returned error exit status 2

Changed in gcc-defaults (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.