Score:0

Help me to get rid of unmet dependencies

cn flag

when I try to install it shows this. Help me to get rid of it. I tried to install codeblocks once with dpkg command. I am using ubuntu 20.04

reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 codeblocks-contrib : Depends: libboost-system1.62.0 but it is not installable
                      Depends: libhunspell-1.4-0 but it is not installable
                      Depends: libwxgtk3.0-0v5 (>= 3.0.2+dfsg) but it is not installable
                      Depends: libwxsmithlib0 (= 20.03) but 20.03-3 is to be installed
                      Depends: codeblocks (= 20.03) but it is not going to be installed
                      Recommends: valgrind but it is not going to be installed
                      Recommends: cppcheck but it is not going to be installed
                      Recommends: cscope but it is not going to be installed
                      Recommends: cccc but it is not going to be installed
 codeblocks-dev : Depends: libcodeblocks0 (= 20.03) but 20.03-3 is to be installed
 codeblocks-libwxcontrib0 : Depends: libwxgtk3.0-0v5 (>= 3.0.2+dfsg) but it is not installable
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

waltinator avatar
it flag
The error message tells you what to do, twice. "`You might want to run apt --fix-broken install`". Do that.
Irsu85 avatar
cn flag
But with sudo before that command
Pronay Sarker avatar
cn flag
I tried, But it did not work.
Score:1
de flag

I suggest you do the following commands that might install the software and remove the error message

sudo apt --fix-broken install

sudo apt update

sudo apt-get upgrade

sudo apt install codeblocks
Score:-1
in flag

Step 1:

Firstly I would suggest trying the whole installation procedure using aptitude, since it provides solutions that most of the time work.

sudo apt update
sudo apt install aptitude    

And then try downloading your package using aptitude:

sudo aptitude install <package-name>

Step 2:

If that doesn't work, try downloading the dependencies one by one to see if the problem goes away.

sudo apt install -f libcodeblocks0=20.03 # -f flag means fix broken
sudo apt install -f libwxgtk3.0-0v5=3.0.2+dfsg
sudo apt install -f libboost-system1.62.0
sudo apt install -f libhunspell-1.4-0
sudo apt install -f libwxsmithlib0=20.03

Step 3:

If the above steps don't cut it either (which I guess might happen since some packages are marked as not installable), try downloading those packages from Ubuntu registry for your computer architecture (I'll list for amd64)

Links:

libwxgtk3.0-0v5

codeblocks

libcodeblocks0

libhunspell-1.4-0 (right, under downloadable files)

libwxsmithlib0

libboost-system1.62.0

Hope this solves the problem. If not, comment below.

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.