Error when attempting to download Ignition Gazebo from source for Ubuntu 22.04
While reviewing the following article https://gazebosim.org/docs/garden/ins... I came across an error when running the very first command:
sudo apt install python3-pip wget lsb-release gnupg curl
The error is shown below:
Reading package lists... Done │ Building dependency tree... Done │ Reading state information... Done │ lsb-release is already the newest version (11.1.0ubuntu4). │ wget is already the newest version (1.21.2-2ubuntu1). │ python3-pip is already the newest version (22.0.2+dfsg-1). │ curl is already the newest version (7.81.0-1ubuntu1.3). │ gnupg is already the newest version (2.2.27-3ubuntu2.1). │ You might want to run 'apt --fix-broken install' to correct these. │ The following packages have unmet dependencies: │ libignition-gazebo-plugins : Depends: libignition-plugin1-1 (>= 1.2.1+ds) but it is not going to be installed │ libignition-gazebo6-6 : Depends: libignition-plugin1-1 (>= 1.2.1+ds) but it is not going to be installed │ libignition-gui6-6 : Depends: libignition-plugin1-1 (>= 1.2.1+ds) but it is not going to be installed │ libignition-rendering6-6 : Depends: libignition-plugin1-1 (>= 1.2.1+ds) but it is not going to be installed │ E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
It states there is an "unmet dependency" called libignition-plugin1-1, so when I attempted to download that using sudo apt-get install libignition-plugin1-1, I observed another error:
Reading package lists... Done │ Building dependency tree... Done │ Reading state information... Done │ Suggested packages: │ ignition-tools │ The following NEW packages will be installed: │ libignition-plugin1-1 │ 0 upgraded, 1 newly installed, 0 to remove and 84 not upgraded. │ 392 not fully installed or removed. │ Need to get 0 B/43.6 kB of archives. │ After this operation, 144 kB of additional disk space will be used. │ (Reading database ... 124396 files and directories currently installed.) │ Preparing to unpack .../libignition-plugin1-1_1.2.1+ds-1_amd64.deb ... │ Unpacking libignition-plugin1-1:amd64 (1.2.1+ds-1) ... │ dpkg: error processing archive /var/cache/apt/archives/libignition-plugin1-1_1.2.1+ds-1_amd64.deb (--unpack): │ trying to overwrite '/usr/lib/x86_64-linux-gnu/libignition-plugin1-loader.so.1.2.1', which is also in package libignition-│ plugin:amd64 1.2.1+osrf-1~jammy │ Errors were encountered while processing: │ /var/cache/apt/archives/libignition-plugin1-1_1.2.1+ds-1_amd64.deb │ E: Sub-process /usr/bin/dpkg returned an error code (1)
I am not sure what this error is referring to, and there does not seem to be any resources online regarding this. I think because of this the subsequent source installation steps are not effective, as after going through all steps, I was not able to set up Gazebo as instructed.
Any help is appreciated