Te descurci în direcția corectă, dar ai uitat două lucruri - adaugă principal buzunar pentru focal și pentru aprovizionare -t=target_release
opțiune la APT.
Deci soluția completă este următoarea:
sudo add-apt-repository „deb http://archive.ubuntu.com/ubuntu/ universul principal focal”
sudo apt install gcc-mingw-w64=9.3.0-7ubuntu1+22~exp1ubuntu4 -s -t focal
Notă: -s
ar trebui eliminate deoarece acum avem originile corecte ale pachetului:
Inst libisl22 (0.22.1-1 Ubuntu:20.04/focal [amd64])
Inst binutils-mingw-w64-i686 (2.34-5ubuntu1+8.8 Ubuntu:20.04/focal [amd64])
Inst binutils-mingw-w64-x86-64 (2.34-5ubuntu1+8.8 Ubuntu:20.04/focal [amd64])
Inst mingw-w64-common (7.0.0-2 Ubuntu: 20.04/focal [toate])
Inst mingw-w64-i686-dev (7.0.0-2 Ubuntu: 20.04/focal [toate])
Inst gcc-mingw-w64-base (9.3.0-7ubuntu1+22~exp1ubuntu4 Ubuntu:20.04/focal [amd64])
Inst gcc-mingw-w64-i686 (9.3.0-7ubuntu1+22~exp1ubuntu4 Ubuntu:20.04/focal [amd64])
Inst mingw-w64-x86-64-dev (7.0.0-2 Ubuntu: 20.04/focal [toate])
Inst gcc-mingw-w64-x86-64 (9.3.0-7ubuntu1+22~exp1ubuntu4 Ubuntu:20.04/focal [amd64])
Inst gcc-mingw-w64 (9.3.0-7ubuntu1+22~exp1ubuntu4 Ubuntu:20.04/focal [toate])
Conf libisl22 (0.22.1-1 Ubuntu:20.04/focal [amd64])
Conf binutils-mingw-w64-i686 (2.34-5ubuntu1+8.8 Ubuntu:20.04/focal [amd64])
Conf binutils-mingw-w64-x86-64 (2.34-5ubuntu1+8.8 Ubuntu:20.04/focal [amd64])
Conf mingw-w64-common (7.0.0-2 Ubuntu: 20.04/focal [toate])
Conf mingw-w64-i686-dev (7.0.0-2 Ubuntu: 20.04/focal [toate])
Conf gcc-mingw-w64-base (9.3.0-7ubuntu1+22~exp1ubuntu4 Ubuntu:20.04/focal [amd64])
Conf gcc-mingw-w64-i686 (9.3.0-7ubuntu1+22~exp1ubuntu4 Ubuntu:20.04/focal [amd64])
Conf mingw-w64-x86-64-dev (7.0.0-2 Ubuntu: 20.04/focal [toate])
Conf gcc-mingw-w64-x86-64 (9.3.0-7ubuntu1+22~exp1ubuntu4 Ubuntu:20.04/focal [amd64])
Conf gcc-mingw-w64 (9.3.0-7ubuntu1+22~exp1ubuntu4 Ubuntu:20.04/focal [toate])