0

I try to fix it using sudo apt --fix-broken intall which gives this result:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 cpp-x86-64-linux-gnu : Breaks: cpp (< 4:13.2.0-3) but 4:11.2.0-1ubuntu1 is installed
 gcc-14-base : Breaks: gcc-14-base:i386 (!= 14.2.0-4ubuntu2) but 14.2.0-4ubuntu2~24.04 is installed
 gcc-14-base:i386 : Breaks: gcc-14-base (!= 14.2.0-4ubuntu2~24.04) but 14.2.0-4ubuntu2 is installed
 gcc-14-locales : Depends: cpp-14 (>= 14) but it is not installable
                  Recommends: gcc-14 (>= 14) but it is not installed
 libatomic1 : Depends: gcc-14-base (= 14.2.0-4ubuntu2~24.04) but 14.2.0-4ubuntu2 is installed
 libgcc-s1 : Depends: gcc-14-base (= 14.2.0-4ubuntu2~24.04) but 14.2.0-4ubuntu2 is installed
 libgomp1 : Depends: gcc-14-base (= 14.2.0-4ubuntu2~24.04) but 14.2.0-4ubuntu2 is installed
 libstdc++6 : Depends: gcc-14-base (= 14.2.0-4ubuntu2~24.04) but 14.2.0-4ubuntu2 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

Doing sudo dpkg --configure -a gives this:

dpkg: dependency problems prevent configuration of gcc-14-locales:
 gcc-14-locales depends on cpp-14 (>= 14); however:
  Package cpp-14 is not installed.

dpkg: error processing package gcc-14-locales (--configure): dependency problems - leaving unconfigured dpkg: error processing package gcc-14-base:amd64 (--configure): package gcc-14-base:amd64 14.2.0-4ubuntu2 cannot be configured because gcc-14-base:i386 is at a different version (14.2.0-4ubuntu2~24.04) Errors were encountered while processing: gcc-14-locales gcc-14-base:amd64

So I do sudo apt install cpp-14 and it leads me back to the beginning

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 cpp-14 : Depends: gcc-14-base (= 14.2.0-4ubuntu2~24.04) but 14.2.0-4ubuntu2 is to be installed
          Depends: cpp-14-x86-64-linux-gnu (= 14.2.0-4ubuntu2~24.04)
 cpp-x86-64-linux-gnu : Breaks: cpp (< 4:13.2.0-3) but 4:11.2.0-1ubuntu1 is to be installed
 gcc-14-base : Breaks: gcc-14-base:i386 (!= 14.2.0-4ubuntu2) but 14.2.0-4ubuntu2~24.04 is to be installed
 gcc-14-base:i386 : Breaks: gcc-14-base (!= 14.2.0-4ubuntu2~24.04) but 14.2.0-4ubuntu2 is to be installed
 libatomic1 : Depends: gcc-14-base (= 14.2.0-4ubuntu2~24.04) but 14.2.0-4ubuntu2 is to be installed
 libgcc-s1 : Depends: gcc-14-base (= 14.2.0-4ubuntu2~24.04) but 14.2.0-4ubuntu2 is to be installed
 libgomp1 : Depends: gcc-14-base (= 14.2.0-4ubuntu2~24.04) but 14.2.0-4ubuntu2 is to be installed
 libstdc++6 : Depends: gcc-14-base (= 14.2.0-4ubuntu2~24.04) but 14.2.0-4ubuntu2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I have literally no idea how to correct this as I'm fairly new to ubuntu, and it's also mentioning that before upgrading to ubuntu 24 I used rsync to copy the /usr/ directory from my pc to my laptop (which is having issues) but while on ubunutu 22 there were no issues.

edit: I tried sudo dpkg -i '/home/(user)/Downloads/gcc-14-aarch64-linux-gnu-base_14.2.0-4ubuntu2~24.04cross1_amd64.deb' which gave this output:

dpkg: warning: files list file for package 'python3.12-minimal' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3.10' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3.12' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'python3.10-minimal' missing; assuming package has no files currently installed
(Reading database ... 279400 files and directories currently installed.)
Preparing to unpack .../gcc-14-aarch64-linux-gnu-base_14.2.0-4ubuntu2~24.04cross1_amd64.deb ...
Unpacking gcc-14-aarch64-linux-gnu-base:amd64 (14.2.0-4ubuntu2~24.04cross1) over (14.2.0-4ubuntu2~24.04cross1) ...
Setting up gcc-14-aarch64-linux-gnu-base:amd64 (14.2.0-4ubuntu2~24.04cross1) ...

gcc - v returns

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)

g++ -v returns basically the same thing:

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04) 

0 Answers0