Score:0

Cannot install gfortran after release upgrade

ml flag

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 gfortran

Reading package lists... Done
Building dependency tree... Done
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:
 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 installed
E: Unable to correct problems, you have held broken packages.

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

>> ls /etc/apt/sources.list.d
flexiondotorg-ubuntu-audio-bionic.list              flexiondotorg-ubuntu-nvtop-bionic.list              vscode.list
flexiondotorg-ubuntu-audio-bionic.list.distUpgrade  flexiondotorg-ubuntu-nvtop-bionic.list.distUpgrade  vscode.list.distUpgrade
flexiondotorg-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?

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.