package gfortran 4:9.3.0-1ubuntu2 failed to install/upgrade: installed gfortran package post-installation script subprocess returned error exit status 2

Bug #1959019 reported by Camilo Alberto Gomez Cano
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-defaults (Ubuntu)
New
Undecided
Unassigned

Bug Description

I got a problem with gfortran, and doesn't allow me install any program:

"Found erros with: Gfortran"
Additional:
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: gfortran 4:9.3.0-1ubuntu2
ProcVersionSignature: Ubuntu 5.4.0-96.109-generic 5.4.157
Uname: Linux 5.4.0-96-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.21
Architecture: amd64
CasperMD5CheckResult: skip
Date: Mon Jan 24 19:44:39 2022
DuplicateSignature:
 package:gfortran:4:9.3.0-1ubuntu2
 Setting up gfortran (4:9.3.0-1ubuntu2) ...
 update-alternatives: error: cannot stat file '/etc/alternatives/f95': Invalid argument
 dpkg: error processing package gfortran (--configure):
  installed gfortran package post-installation script subprocess returned error exit status 2
ErrorMessage: installed gfortran package post-installation script subprocess returned error exit status 2
InstallationDate: Installed on 2017-02-11 (1808 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.17-4
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.6
SourcePackage: gcc-defaults
Title: package gfortran 4:9.3.0-1ubuntu2 failed to install/upgrade: installed gfortran package post-installation script subprocess returned error exit status 2
UpgradeStatus: Upgraded to focal on 2022-01-25 (0 days ago)

Revision history for this message
Camilo Alberto Gomez Cano (michcamilo95) wrote :
information type: Private Security → Public
tags: removed: need-duplicate-check
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.