Author Topic: how to install codeblocks 10.05 on ubuntu 11.04 (offline)?  (Read 8831 times)

Offline vikash

  • Multiple posting newcomer
  • *
  • Posts: 23
how to install codeblocks 10.05 on ubuntu 11.04 (offline)?
« on: August 23, 2011, 12:44:14 pm »
I have downloaded codeblocks for debian from ubuntu download page.
There are a lot of .deb packages How to install them. I try to install one of them. As i click on that it comes to software. After clicking install it still tries to connect Internet. But here i am trying to install it off line.
most of all i want to ask how to install codeblocks on ubuntu 11.04 off-line.

thanks for reply.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: how to install codeblocks 10.05 on ubuntu 11.04 (offline)?
« Reply #1 on: August 23, 2011, 12:59:27 pm »
Have you read this: http://www.debian.org/doc/FAQ/ch-pkgtools.en.html ?
Also have you tried to install the packages with dpkg?

hint1: you should add all packages to the command
hint2: read the manual for dpkg
hint3: execute "man dpkg" for the manual
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline vikash

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: how to install codeblocks 10.05 on ubuntu 11.04 (offline)?
« Reply #2 on: August 23, 2011, 02:17:23 pm »
Have you read this: http://www.debian.org/doc/FAQ/ch-pkgtools.en.html ?
Also have you tried to install the packages with dpkg?

hint1: you should add all packages to the command
hint2: read the manual for dpkg
hint3: execute "man dpkg" for the manual
I try this
Code
cd Desktop
cd i386   //all deb files are inside this folder
dpkg --install codeblocks_10.05-1_i386.deb
but it says error see attachment.
you say add all the packages to the command what does it  mean.
You can see the desktop environment in the attachment can you tell me the suitable command.
thanks for you useful reply waiting for next one.
« Last Edit: August 23, 2011, 02:21:43 pm by vikash »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: how to install codeblocks 10.05 on ubuntu 11.04 (offline)?
« Reply #3 on: August 23, 2011, 03:01:46 pm »


facepalm1: you've not learned to search with the error messages from the programs
facepalm2: you don't know how to copy paste text, but you've attached a screen shot
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Freem

  • Almost regular
  • **
  • Posts: 219
Re: how to install codeblocks 10.05 on ubuntu 11.04 (offline)?
« Reply #4 on: August 23, 2011, 03:03:54 pm »
Running dpkg is the same as running apt-get or aptitude or synaptic...
You need to be a super user to install something.
Aptitude and synaptics can allow you to become admin by asking you the pass.
But with the vast majority of command line tools, you will have to become admin before.

Ubuntu give the "sudo" command for this, or you may prefer (as I) "su".
Your command should be:
Code
sudo dpkg -i codeblocks_10.05-1_i386.deb

But that will probably fail too, because other packages could be absent.
If all packages are in your directory and there are no other, you can use:
Code
sudo dpkg -i *
To be faster.
Else, you will have to precise all packages manually, like this:
Code
sudo dpkg -i codeblocks_10.05-1_i386.deb another_12.34-5_arch.deb package_23.45-6_arch.deb
Obviously, replace the 2 I added which are fictive by the real ones.

BTW you should really read some docs about CLI and posix privileges... the error message is really easy to understand...


PS: I love this image oBFusCATed... Will put it in favorites as a nice tool

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: how to install codeblocks 10.05 on ubuntu 11.04 (offline)?
« Reply #5 on: August 23, 2011, 03:08:44 pm »
Have you read this: http://www.debian.org/doc/FAQ/ch-pkgtools.en.html ?
Also have you tried to install the packages with dpkg?

hint1: you should add all packages to the command
hint2: read the manual for dpkg
hint3: execute "man dpkg" for the manual
I try this
Code
cd Desktop
cd i386   //all deb files are inside this folder
dpkg --install codeblocks_10.05-1_i386.deb
but it says error see attachment.
you say add all the packages to the command what does it  mean.
You can see the desktop environment in the attachment can you tell me the suitable command.
thanks for you useful reply waiting for next one.

As first this is not a forum to teach linux (and more distro-specific) basics.

Nevertheless, run:
sudo dpkg -i [all the packages seperated by spaces] or run the command as root.
Instead of typing all packages names, you can use *.deb, this will also install the debug-packages, but that should not effect the normal use.

By the way, if youhave any problems with the packages (not C::B itself), you should ask the ubuntu maintainers, because we do not maintain the packages in ubuntu's repo.

ALternatively, you can use the download from our website or (to get a more recent version) from my repo.