You are not logged in.

#1 2015-12-15 16:01:00

Skava
Member
Registered: 2015-12-14
Posts: 7

Installing CodeBlocks

Is there a way to install CodeBlocks? I found something on the CrunchBang forum but not sure if the same method would apply here (http://crunchbang.org/forums/viewtopic.php?id=18189)

Offline

#2 2015-12-15 16:06:35

arti
Member
Registered: 2015-12-02
Posts: 73

Re: Installing CodeBlocks

Have you tried the repositories?
Could work

sudo apt-get install codeblocks 

Last edited by arti (2015-12-15 16:11:20)

Offline

#3 2015-12-15 16:17:45

Skava
Member
Registered: 2015-12-14
Posts: 7

Re: Installing CodeBlocks

I should've mentioned that that was the first things I did but I get this error:

Package codeblocks is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'codeblocks' has no installation candidate

I tried updating the repositories but still get the same error messages

Last edited by Skava (2015-12-15 16:18:10)

Offline

#4 2015-12-15 16:24:21

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: Installing CodeBlocks

The package is in `jessie-backports`. Have you enabled that repo?

HINT: Menu -> Help -> Debian -> Package Search


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#5 2015-12-15 16:24:55

pvsage
Internal Affairs
Registered: 2015-09-29
Posts: 1,433

Re: Installing CodeBlocks

apt-cache policy is telling me that codeblocks is available in jessie-backports; try adding jessie-backports to your /etc/apt/sources.list.

EDIT:  ninja'd by damo.

Last edited by pvsage (2015-12-15 16:25:21)


Be excellent to each other, and...party on, dudes!
BunsenLabs Forum Rules
Tending and defending the Flame since 2009

Offline

#6 2015-12-15 16:41:45

Skava
Member
Registered: 2015-12-14
Posts: 7

Re: Installing CodeBlocks

I read this page:https://pkg.bunsenlabs.org/#jessie-backports which says I should add the repo into /etc/apt/sources.list.d/bunsen-jessie-backports.list

I then tried doing a

sudo apt-get -t jessie-backports install codeblocks

and even tried

sudo apt-get install -t jessie-backports codeblocks

(saw hhh mention this with regards to the power management icon) but I still get the same error as shown in my second post

edit: just had a look into the jessie-backports repository and I don't see codeblocks in there. Checked under Development and Editors. Prehaps it wasn't there in the first place?

edit2: nevermind, I see it now but can't install it

Last edited by Skava (2015-12-15 16:55:54)

Offline

#7 2015-12-15 16:54:01

pvsage
Internal Affairs
Registered: 2015-09-29
Posts: 1,433

Re: Installing CodeBlocks

^ You need to re-run

sudo apt-get update

after changing your /etc/apt/sources.list before APT can find packages in the newly added repositories.

EDIT:  It's in the devel section of jessie-backports.

Last edited by pvsage (2015-12-15 16:56:09)


Be excellent to each other, and...party on, dudes!
BunsenLabs Forum Rules
Tending and defending the Flame since 2009

Offline

#8 2015-12-15 16:58:31

Skava
Member
Registered: 2015-12-14
Posts: 7

Re: Installing CodeBlocks

Yeah I already did that after putting the line in my sources.list but it doesn't install anything

edit:

Package codeblocks is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Last edited by Skava (2015-12-15 17:07:04)

Offline

#9 2015-12-15 17:17:14

pvsage
Internal Affairs
Registered: 2015-09-29
Posts: 1,433

Re: Installing CodeBlocks

Did you retry with -t jessie-backports?

Could you post the output that is displayed when you run $(sudo apt-get update)?


Be excellent to each other, and...party on, dudes!
BunsenLabs Forum Rules
Tending and defending the Flame since 2009

Offline

#10 2015-12-15 17:19:35

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Installing CodeBlocks

Skava wrote:

I read this page:https://pkg.bunsenlabs.org/#jessie-backports which says I should add the repo into /etc/apt/sources.list.d/bunsen-jessie-backports.list

You have the BunsenLabs jessie-backports repository -- you need to add the official Debian version.

Use:

sudo apt edit-sources

Then add this line:

deb http://httpredir.debian.org/debian jessie-backports main

Then update your package database and install:

sudo sh -c 'apt update && apt install codeblocks/jessie-backports'

Offline

#11 2015-12-15 18:06:56

Skava
Member
Registered: 2015-12-14
Posts: 7

Re: Installing CodeBlocks

pvsage wrote:

Did you retry with -t jessie-backports?

Could you post the output that is displayed when you run $(sudo apt-get update)?


Yes I have been using -t jessie-backports throughout all this. As requested, here's my output when doing a sudo apt-get update

Hit http://www.deb-multimedia.org jessie InRelease
Ign http://ftp.uk.debian.org jessie InRelease                                  
Hit http://ftp.uk.debian.org jessie-updates InRelease                          
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]            
Ign http://httpredir.debian.org jessie-backports InRelease                     
Hit http://pkg.bunsenlabs.org jessie-backports InRelease                       
Hit http://ftp.uk.debian.org jessie Release.gpg                                
Ign http://httpredir.debian.org jessie-backports Release.gpg                   
Hit http://ftp.uk.debian.org jessie Release                              
Hit http://pkg.bunsenlabs.org bunsen-hydrogen InRelease                  
Ign http://httpredir.debian.org jessie-backports Release                 
Hit http://www.deb-multimedia.org jessie/main amd64 Packages
Hit http://www.deb-multimedia.org jessie/non-free amd64 Packages               
Get:2 http://ftp.uk.debian.org jessie-updates/main amd64 Packages/DiffIndex [367 B]
Hit http://ftp.uk.debian.org jessie-updates/contrib amd64 Packages             
Hit http://ftp.uk.debian.org jessie-updates/non-free amd64 Packages            
Hit http://pkg.bunsenlabs.org jessie-backports/main amd64 Packages             
Hit http://ftp.uk.debian.org jessie-updates/contrib Translation-en             
Get:3 http://security.debian.org jessie/updates/main amd64 Packages [163 kB]   
Hit http://ftp.uk.debian.org jessie-updates/main Translation-en                
Hit http://ftp.uk.debian.org jessie-updates/non-free Translation-en            
Hit http://ftp.uk.debian.org jessie/main amd64 Packages                        
Hit http://ftp.uk.debian.org jessie/non-free amd64 Packages                    
Hit http://ftp.uk.debian.org jessie/contrib amd64 Packages                     
Hit http://ftp.uk.debian.org jessie/contrib Translation-en                     
Hit http://ftp.uk.debian.org jessie/main Translation-en                        
Hit http://pkg.bunsenlabs.org bunsen-hydrogen/main amd64 Packages              
Hit http://ftp.uk.debian.org jessie/non-free Translation-en                    
Get:4 http://security.debian.org jessie/updates/contrib amd64 Packages [2,512 B]
Err http://httpredir.debian.org jessie-backports/main amd64 Packages           
  404  Not Found [IP: 5.153.231.35 80]
Get:5 http://security.debian.org jessie/updates/non-free amd64 Packages [14 B] 
Ign http://httpredir.debian.org jessie-backports/main Translation-en_GB        
Get:6 http://security.debian.org jessie/updates/contrib Translation-en [1,211 B]
Ign http://httpredir.debian.org jessie-backports/main Translation-en           
Get:7 http://security.debian.org jessie/updates/main Translation-en [88.2 kB]  
Ign http://www.deb-multimedia.org jessie/main Translation-en_GB                
Ign http://www.deb-multimedia.org jessie/main Translation-en                   
Get:8 http://security.debian.org jessie/updates/non-free Translation-en [14 B] 
Ign http://www.deb-multimedia.org jessie/non-free Translation-en_GB            
Ign http://www.deb-multimedia.org jessie/non-free Translation-en   
Ign http://pkg.bunsenlabs.org jessie-backports/main Translation-en_GB
Ign http://pkg.bunsenlabs.org jessie-backports/main Translation-en
Ign http://pkg.bunsenlabs.org bunsen-hydrogen/main Translation-en_GB
Ign http://pkg.bunsenlabs.org bunsen-hydrogen/main Translation-en
Fetched 318 kB in 2s (117 kB/s)              
W: Failed to fetch http://httpredir.debian.org/debiab/dists/jessie-backports/main/binary-amd64/Packages  404  Not Found [IP: 5.153.231.35 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
chokey@debian:/etc/apt$ sudo apt edit-sources
chokey@debian:/etc/apt$ sudo sh -c 'apt update && apt install codeblocks/jessie-backports'
Ign http://ftp.uk.debian.org jessie InRelease
Hit http://www.deb-multimedia.org jessie InRelease                             
Hit http://ftp.uk.debian.org jessie-updates InRelease                          
Hit http://security.debian.org jessie/updates InRelease                        
Ign http://httpredir.debian.org jessie-backports InRelease                     
Hit http://pkg.bunsenlabs.org jessie-backports InRelease                       
Hit http://pkg.bunsenlabs.org bunsen-hydrogen InRelease                        
Hit http://ftp.uk.debian.org jessie Release.gpg                         
Ign http://httpredir.debian.org jessie-backports Release.gpg            
Hit http://ftp.uk.debian.org jessie Release       
Ign http://httpredir.debian.org jessie-backports Release
Get:1 http://ftp.uk.debian.org jessie-updates/main amd64 Packages/DiffIndex [367 B]
Hit http://ftp.uk.debian.org jessie-updates/contrib amd64 Packages      
Hit http://www.deb-multimedia.org jessie/main amd64 Packages            
Hit http://www.deb-multimedia.org jessie/non-free amd64 Packages        
Hit http://ftp.uk.debian.org jessie-updates/non-free amd64 Packages            
Hit http://ftp.uk.debian.org jessie-updates/contrib Translation-en             
Hit http://ftp.uk.debian.org jessie-updates/non-free Translation-en            
Hit http://ftp.uk.debian.org jessie-updates/main Translation-en                
Err http://httpredir.debian.org jessie-backports/main amd64 Packages           
  404  Not Found [IP: 5.153.231.35 80]
Ign http://httpredir.debian.org jessie-backports/main Translation-en_GB        
Hit http://pkg.bunsenlabs.org jessie-backports/main amd64 Packages             
Ign http://httpredir.debian.org jessie-backports/main Translation-en           
Hit http://security.debian.org jessie/updates/main amd64 Packages              
Ign http://www.deb-multimedia.org jessie/main Translation-en_GB                
Hit http://security.debian.org jessie/updates/contrib amd64 Packages           
Ign http://www.deb-multimedia.org jessie/main Translation-en                   
Hit http://ftp.uk.debian.org jessie/main amd64 Packages                        
Hit http://security.debian.org jessie/updates/non-free amd64 Packages          
Hit http://security.debian.org jessie/updates/contrib Translation-en           
Ign http://www.deb-multimedia.org jessie/non-free Translation-en_GB            
Hit http://security.debian.org jessie/updates/main Translation-en              
Ign http://www.deb-multimedia.org jessie/non-free Translation-en               
Hit http://ftp.uk.debian.org jessie/non-free amd64 Packages                    
Hit http://security.debian.org jessie/updates/non-free Translation-en          
Hit http://ftp.uk.debian.org jessie/contrib amd64 Packages                     
Hit http://ftp.uk.debian.org jessie/contrib Translation-en         
Hit http://pkg.bunsenlabs.org bunsen-hydrogen/main amd64 Packages  
Hit http://ftp.uk.debian.org jessie/main Translation-en            
Hit http://ftp.uk.debian.org jessie/non-free Translation-en        
Ign http://pkg.bunsenlabs.org jessie-backports/main Translation-en_GB
Ign http://pkg.bunsenlabs.org jessie-backports/main Translation-en
Ign http://pkg.bunsenlabs.org bunsen-hydrogen/main Translation-en_GB
Ign http://pkg.bunsenlabs.org bunsen-hydrogen/main Translation-en
Fetched 367 B in 2s (130 B/s)                
W: Failed to fetch http://httpredir.debian.org/debiab/dists/jessie-backports/main/binary-amd64/Packages  404  Not Found [IP: 5.153.231.35 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
chokey@debian:/etc/apt$ sudo apt edit-sources
Your '/etc/apt/sources.list' file changed, please run 'apt-get update'.
chokey@debian:/etc/apt$ clear
[3;J
chokey@debian:/etc/apt$ sudo apt-get update
Ign http://ftp.uk.debian.org jessie InRelease
Hit http://www.deb-multimedia.org jessie InRelease                             
Hit http://ftp.uk.debian.org jessie-updates InRelease                          
Hit http://security.debian.org jessie/updates InRelease              
Hit http://pkg.bunsenlabs.org jessie-backports InRelease             
Hit http://ftp.uk.debian.org jessie Release.gpg                         
Hit http://ftp.uk.debian.org jessie Release                                    
Hit http://pkg.bunsenlabs.org bunsen-hydrogen InRelease                        
Get:1 http://ftp.uk.debian.org jessie-updates/main amd64 Packages/DiffIndex [367 B]
Hit http://ftp.uk.debian.org jessie-updates/contrib amd64 Packages             
Hit http://ftp.uk.debian.org jessie-updates/non-free amd64 Packages            
Hit http://security.debian.org jessie/updates/non-free amd64 Packages          
Hit http://ftp.uk.debian.org jessie-updates/contrib Translation-en             
Hit http://www.deb-multimedia.org jessie/main amd64 Packages                   
Hit http://www.deb-multimedia.org jessie/non-free amd64 Packages               
Hit http://ftp.uk.debian.org jessie-updates/non-free Translation-en            
Hit http://security.debian.org jessie/updates/non-free Translation-en          
Hit http://pkg.bunsenlabs.org jessie-backports/main amd64 Packages    
Hit http://security.debian.org jessie/updates/main amd64 Packages              
Hit http://security.debian.org jessie/updates/contrib amd64 Packages           
Hit http://pkg.bunsenlabs.org bunsen-hydrogen/main amd64 Packages              
Hit http://security.debian.org jessie/updates/contrib Translation-en  
Hit http://security.debian.org jessie/updates/main Translation-en              
Hit http://ftp.uk.debian.org jessie-updates/main Translation-en                
Hit http://ftp.uk.debian.org jessie/main amd64 Packages                        
Ign http://www.deb-multimedia.org jessie/main Translation-en_GB                
Hit http://ftp.uk.debian.org jessie/non-free amd64 Packages                    
Hit http://ftp.uk.debian.org jessie/contrib amd64 Packages                     
Hit http://ftp.uk.debian.org jessie/contrib Translation-en                     
Hit http://ftp.uk.debian.org jessie/main Translation-en                        
Hit http://ftp.uk.debian.org jessie/non-free Translation-en                    
Ign http://www.deb-multimedia.org jessie/main Translation-en                   
Ign http://www.deb-multimedia.org jessie/non-free Translation-en_GB
Ign http://www.deb-multimedia.org jessie/non-free Translation-en
Ign http://pkg.bunsenlabs.org jessie-backports/main Translation-en_GB
Ign http://pkg.bunsenlabs.org jessie-backports/main Translation-en
Ign http://pkg.bunsenlabs.org bunsen-hydrogen/main Translation-en_GB
Ign http://pkg.bunsenlabs.org bunsen-hydrogen/main Translation-en
Fetched 367 B in 4s (86 B/s)                 
Reading package lists... Done

@Head_on_a_Stick I think there may be a problem with the repository link you gave since I get a 404 error when trying to update the repo

Offline

#12 2015-12-15 18:12:13

pvsage
Internal Affairs
Registered: 2015-09-29
Posts: 1,433

Re: Installing CodeBlocks

http://httpredir.debian.org/debiab/dists/jessie-backports/main/binary-amd64/

There's a typo in your sources.  It's a common one actually.


Be excellent to each other, and...party on, dudes!
BunsenLabs Forum Rules
Tending and defending the Flame since 2009

Offline

#13 2015-12-15 18:26:44

Skava
Member
Registered: 2015-12-14
Posts: 7

Re: Installing CodeBlocks

pvsage wrote:
http://httpredir.debian.org/debiab/dists/jessie-backports/main/binary-amd64/

There's a typo in your sources.  It's a common one actually.

Well we got there eventually, it was the definetely a typo, although I don't remember adding that specific link to my /etc/apt/sources.list file. Anywho, not going to think about it too much now. Thanks for the help

Offline

Board footer

Powered by FluxBB