Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2827

Cannot install gfortran after release upgrade [duplicate]

$
0
0

I'm using Ubuntu on WSL2 and recently upgraded from 18.04 to 20.04 and then to 22.04 by doing do-release-upgrade twice, which seemed to work fine. But now I cannot install gfortran:

>> sudo apt-get install gfortranReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation:The following packages have unmet dependencies: cpp-11 : Depends: gcc-11-base (= 11.4.0-1ubuntu1~22.04) but 11.4.0-2ubuntu1~18.04 is to be installed gcc-11 : Depends: gcc-11-base (= 11.4.0-1ubuntu1~22.04) but 11.4.0-2ubuntu1~18.04 is to be installed          Depends: libgcc-11-dev (= 11.4.0-1ubuntu1~22.04) but it is not going to be installed gfortran-11 : Depends: gcc-11-base (= 11.4.0-1ubuntu1~22.04) but 11.4.0-2ubuntu1~18.04 is to be installed               Depends: libgfortran-11-dev (= 11.4.0-1ubuntu1~22.04) but it is not going to be installedE: Unable to correct problems, you have held broken packages.

My /ect/apt/source.list.d contains

>> ls /etc/apt/sources.list.dflexiondotorg-ubuntu-audio-bionic.list              flexiondotorg-ubuntu-nvtop-bionic.list              vscode.listflexiondotorg-ubuntu-audio-bionic.list.distUpgrade  flexiondotorg-ubuntu-nvtop-bionic.list.distUpgrade  vscode.list.distUpgradeflexiondotorg-ubuntu-audio-bionic.list.save         flexiondotorg-ubuntu-nvtop-bionic.list.save         vscode.list.save

but as far as I can tell everything was commented out after the upgrade to focal. Is there a way how I can solve this?


Viewing all articles
Browse latest Browse all 2827

Trending Articles