Just downloaded the codeblocks .bz2, extracted it and have a bunch of files which I dont know what to do with.

A friend once showed me how to install it using the command line, but I cant remember how to do it. I think I used a package manager or something from the command line? They are all .deb files.

The solution is NOT to open them all using software center. Installing this way destroys the OS.

Anyone have any ideas? Thanks!

  • You said "Installing this way destroys the OS". Any reason for that? – Max Feb 10 '13 at 13:33
  • Yes, as I remember, unless you know the specific order in which to install them, then all hell breaks loose, and it 'just wont work anymore'. (As in you can get to the desktop after restart, but you wont be able to install anything ever again until you remove all the packages you tried to install.) – user3728501 Feb 10 '13 at 13:36
  • Thanks! Btw, I'm trying to install CB on Ubuntu 12.10 right now. I did it from Software Center, and got 10.05. What's the best way to install 12.11? – Max Feb 10 '13 at 13:41
  • 2
    Yeah, this is exactly the problem I had. Google for code::blocks, go to their page and download the binary release. (You want the stable one, I would assume.) You should extract the downloaded archive, and find you have a bunch of .deb files. Launch a terminal, cd to this directory, and type sudo dpkg -i *.deb and this will install everything without messing up the os. – user3728501 Feb 10 '13 at 13:54

The solution is:

sudo dpkg -i *.deb

Which will automate the process.

  • On Ubuntu 13.10 I downloaded Code::Blocks 13.12 (Debian Stable x86_64), extracted the bzip and tried using this command. Failed to install and left synaptic with a handful of broken packages that had to be cleared out. No silver bullet here, unfortunately. – Mr Griever Apr 12 '14 at 16:18
  • @MattH. That's a different version, I'm guessing some changes were made which broke this method. Could you ask a question and tag me in a comment so I can find out the solution to doing this for version 13.12? – user3728501 Apr 14 '14 at 13:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.