[SOLVED] Broken dependencies

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
rashmi
Level 1
Level 1
Posts: 9
Joined: Wed Oct 19, 2022 2:26 am
Location: Sri Lanka

[SOLVED] Broken dependencies

Post by rashmi »

I want to install SceneBuilder software, but I get this error in Gdebi installer.
Your system has broken dependencies. This application cannot continue until this is fixed.
I tried following commands but nothing worked.

Code: Select all

pkexec synaptic
  • There are 3 broken dependencies
Image

Code: Select all

sudo apt-get install -f

Code: Select all

The following packages were automatically installed and are no longer required:
  exo-utils libexo-2-0 libexo-common libgarcon-1-0 libgarcon-common libgarcon-gtk3-1-0 libodbc2 libodbccr2
  libxfce4panel-2.0-4 libxfce4ui-2-0 libxfce4ui-common libxfce4util-bin libxfce4util-common libxfce4util7
  libxfconf-0-3 linux-headers-5.15.0-52 linux-headers-5.15.0-52-generic linux-headers-5.15.0-53
  linux-headers-5.15.0-53-generic linux-image-5.15.0-52-generic linux-image-5.15.0-53-generic
  linux-modules-5.15.0-52-generic linux-modules-5.15.0-53-generic linux-modules-extra-5.15.0-52-generic
  linux-modules-extra-5.15.0-53-generic php8.1 php8.1-bcmath php8.1-mysql unixodbc-common xfconf
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libodbc1 odbcinst
Suggested packages:
  unixodbc-bin
The following NEW packages will be installed:
  libodbc1
The following packages will be upgraded:
  odbcinst
1 upgraded, 1 newly installed, 0 to remove and 126 not upgraded.
4 not fully installed or removed.
Need to get 0 B/507 kB of archives.
After this operation, 644 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 492036 files and directories currently installed.)
Preparing to unpack .../odbcinst_2.3.11-1_amd64.deb ...
Unpacking odbcinst (2.3.11-1) over (2.3.9-5) ...
dpkg: error processing archive /var/cache/apt/archives/odbcinst_2.3.11-1_amd64.deb (--unpack):
 trying to overwrite '/etc/odbc.ini', which is also in package unixodbc-common 2.3.9-5
Preparing to unpack .../libodbc1_2.3.11-1_amd64.deb ...
Unpacking libodbc1:amd64 (2.3.11-1) ...
dpkg: error processing archive /var/cache/apt/archives/libodbc1_2.3.11-1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/x86_64-linux-gnu/libodbc.so.2.0.0', which is also in package libodbc2:amd64 2.3.9-5
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/odbcinst_2.3.11-1_amd64.deb
 /var/cache/apt/archives/libodbc1_2.3.11-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Last edited by LockBot on Sat Sep 23, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
rashmi
Level 1
Level 1
Posts: 9
Joined: Wed Oct 19, 2022 2:26 am
Location: Sri Lanka

Re: Broken dependencies

Post by rashmi »

I also tried viewtopic.php?t=360373 this solution to install following packages.

Code: Select all

odbcinst1debian2:amd64
libodbcinst2:amd64
libodbc2:amd64
As I can remember, before trying this I had these 2 broken dependencies of version 2.3.11-1

Code: Select all

unixodbc
unixodbc-dev
sleeper12
Level 21
Level 21
Posts: 14609
Joined: Thu May 25, 2017 3:22 pm

Re: Broken dependencies

Post by sleeper12 »

Try:

Code: Select all

 sudo dpkg -i --force-overwrite /var/cache/apt/archives/libodbc1_2.3.11-1_amd64.deb 

Code: Select all

 sudo apt -f install 
rashmi
Level 1
Level 1
Posts: 9
Joined: Wed Oct 19, 2022 2:26 am
Location: Sri Lanka

Re: Broken dependencies

Post by rashmi »

sleeper12 wrote: Thu Mar 23, 2023 12:56 am Try:

Code: Select all

 sudo dpkg -i --force-overwrite /var/cache/apt/archives/libodbc1_2.3.11-1_amd64.deb 

Code: Select all

 sudo apt -f install 
Thanks for replying!

The output for,

Code: Select all

 sudo apt -f install 
was,

Code: Select all

The following packages were automatically installed and are no longer required:
  exo-utils libexo-2-0 libexo-common libgarcon-1-0 libgarcon-common libgarcon-gtk3-1-0 libodbc2 libodbccr2
  libxfce4panel-2.0-4 libxfce4ui-2-0 libxfce4ui-common libxfce4util-bin libxfce4util-common libxfce4util7
  libxfconf-0-3 linux-headers-5.15.0-52 linux-headers-5.15.0-52-generic linux-headers-5.15.0-53
  linux-headers-5.15.0-53-generic linux-image-5.15.0-52-generic linux-image-5.15.0-53-generic
  linux-modules-5.15.0-52-generic linux-modules-5.15.0-53-generic linux-modules-extra-5.15.0-52-generic
  linux-modules-extra-5.15.0-53-generic php8.1 php8.1-bcmath php8.1-mysql unixodbc-common xfconf
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  odbcinst unixodbc
The following NEW packages will be installed:
  unixodbc
The following packages will be upgraded:
  odbcinst
1 upgraded, 1 newly installed, 0 to remove and 126 not upgraded.
2 not fully installed or removed.
Need to get 0 B/72.8 kB of archives.
After this operation, 135 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
(Reading database ... 492008 files and directories currently installed.)
Preparing to unpack .../odbcinst_2.3.11-1_amd64.deb ...
Unpacking odbcinst (2.3.11-1) over (2.3.9-5) ...
dpkg: error processing archive /var/cache/apt/archives/odbcinst_2.3.11-1_amd64.deb (--unpack):
 trying to overwrite '/etc/odbc.ini', which is also in package unixodbc-common 2.3.9-5
Selecting previously unselected package unixodbc.
Preparing to unpack .../unixodbc_2.3.11-1_amd64.deb ...
Unpacking unixodbc (2.3.11-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/odbcinst_2.3.11-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
sleeper12
Level 21
Level 21
Posts: 14609
Joined: Thu May 25, 2017 3:22 pm

Re: Broken dependencies

Post by sleeper12 »

Well, the broken pipe error seems fixed. Now try:

Code: Select all

sudo dpkg --configure -a
rashmi
Level 1
Level 1
Posts: 9
Joined: Wed Oct 19, 2022 2:26 am
Location: Sri Lanka

Re: Broken dependencies

Post by rashmi »

sleeper12 wrote: Thu Mar 23, 2023 1:11 am Well, the broken pipe error seems fixed. Now try:

Code: Select all

sudo dpkg --configure -a
Yes, now there are only 2 broken dependencies which are,
Image

The output for,

Code: Select all

sudo dpkg --configure -a
was

Code: Select all

Setting up libodbc2:amd64 (2.3.9-5) ...
dpkg: dependency problems prevent configuration of odbcinst1debian2:amd64:
 odbcinst1debian2:amd64 depends on odbcinst (>= 2.3.11-1); however:
  Version of odbcinst on system is 2.3.9-5.

dpkg: error processing package odbcinst1debian2:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of unixodbc:
 unixodbc depends on odbcinst1debian2 (>= 2.3.11-1); however:
  Package odbcinst1debian2:amd64 is not configured yet.

dpkg: error processing package unixodbc (--configure):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
Errors were encountered while processing:
 odbcinst1debian2:amd64
 unixodbc
sleeper12
Level 21
Level 21
Posts: 14609
Joined: Thu May 25, 2017 3:22 pm

Re: Broken dependencies

Post by sleeper12 »

I'm thinking now maybe:

Code: Select all

 sudo dpkg -i --force-overwrite /var/cache/apt/archives/odbcinst_2.3.11-1_amd64.deb 

Code: Select all

 sudo apt -f install 
rashmi
Level 1
Level 1
Posts: 9
Joined: Wed Oct 19, 2022 2:26 am
Location: Sri Lanka

Re: Broken dependencies

Post by rashmi »

sleeper12 wrote: Thu Mar 23, 2023 1:26 am I'm thinking now maybe:

Code: Select all

 sudo dpkg -i --force-overwrite /var/cache/apt/archives/odbcinst_2.3.11-1_amd64.deb 

Code: Select all

 sudo apt -f install 
It worked!!! Thank you so much :D
Finally, I installed SceneBuilder successfully.

The output for

Code: Select all

 sudo dpkg -i --force-overwrite /var/cache/apt/archives/odbcinst_2.3.11-1_amd64.deb 
was

Code: Select all

Selecting previously unselected package odbcinst.
(Reading database ... 492016 files and directories currently installed.)
Preparing to unpack .../odbcinst_2.3.11-1_amd64.deb ...
Unpacking odbcinst (2.3.11-1) over (2.3.9-5) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: trying to overwrite '/etc/odbc.ini', which is also in package unixodbc-common 2.3.9-5
dpkg: dependency problems prevent configuration of odbcinst:
 odbcinst depends on odbcinst1debian2 (>= 2.3.11-1); however:
  Package odbcinst1debian2:amd64 is not configured yet.

dpkg: error processing package odbcinst (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.10.2-1) ...
Errors were encountered while processing:
 odbcinst
Then, the output for

Code: Select all

 sudo apt -f install 
was

Code: Select all

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  exo-utils libexo-2-0 libexo-common libgarcon-1-0 libgarcon-common libgarcon-gtk3-1-0 libodbc2 libodbccr2
  libxfce4panel-2.0-4 libxfce4ui-2-0 libxfce4ui-common libxfce4util-bin libxfce4util-common libxfce4util7
  libxfconf-0-3 linux-headers-5.15.0-52 linux-headers-5.15.0-52-generic linux-headers-5.15.0-53
  linux-headers-5.15.0-53-generic linux-image-5.15.0-52-generic linux-image-5.15.0-53-generic
  linux-modules-5.15.0-52-generic linux-modules-5.15.0-53-generic linux-modules-extra-5.15.0-52-generic
  linux-modules-extra-5.15.0-53-generic php8.1 php8.1-bcmath php8.1-mysql unixodbc-common xfconf
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 126 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up odbcinst1debian2:amd64 (2.3.11-1) ...
Setting up odbcinst (2.3.11-1) ...
Setting up unixodbc (2.3.11-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
sleeper12
Level 21
Level 21
Posts: 14609
Joined: Thu May 25, 2017 3:22 pm

Re: [SOLVED] Broken dependencies

Post by sleeper12 »

Glad to hear it. :wink:
sleeper12
Level 21
Level 21
Posts: 14609
Joined: Thu May 25, 2017 3:22 pm

Re: [SOLVED] Broken dependencies

Post by sleeper12 »

You can also remove those unneeded packages:

Code: Select all

sudo apt autoremove
Locked

Return to “Beginner Questions”