LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-30-2013, 06:47 PM   #1
Abscissa256
Member
 
Registered: Aug 2011
Posts: 79

Rep: Reputation: Disabled
How to install libevent2 on Debian 6?


If I do "sudo apt-get install libevent-dev" it installs v1.4. If I do "sudo apt-get install libevent2-dev" or "sudo apt-get install libevent2" then it tells me "Unable to locate package".
 
Old 05-30-2013, 07:20 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
libevent-2 is for Debian 6 only available from the backports repository. How to configure and use it can be read here: http://backports.debian.org/
Since Debian 6 will only get support for less than a year now you may want to consider to Debian 7, which also has libevent-2 by default.
 
Old 05-30-2013, 08:09 PM   #3
Abscissa256
Member
 
Registered: Aug 2011
Posts: 79

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
Since Debian 6 will only get support for less than a year now you may want to consider to Debian 7, which also has libevent-2 by default.
Really? Deb 7 only came out earlier this month.

In any case, yea, I already intended to, I just haven't yet.

Quote:
libevent-2 is for Debian 6 only available from the backports repository. How to configure and use it can be read here: http://backports.debian.org/
I followed the Instructions link on that page and, as it indicated, I added the following line to my '/etc/apt/sources.list':

Code:
deb http://ftp.us.debian.org/debian-backports squeeze-backports main
Then I did "sudo apt-get update" and tried again (using "-t squeeze-backports" this time), but it still isn't working. I also did all the same with "aptitude" insetad of "apt-get". Still no dice.
 
Old 05-30-2013, 08:23 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

what do you mean by
Quote:
still isn't working
?

Evo2.
 
Old 05-30-2013, 08:39 PM   #5
Abscissa256
Member
 
Registered: Aug 2011
Posts: 79

Original Poster
Rep: Reputation: Disabled
On apt-get: "E: Unable to locate package libevent2"

On aptitude: "Couldn't find any package whose name or description matched "libevent2""

I also tried libevent2-dev, libevent-2 and libevent-2-dev.
 
Old 05-30-2013, 08:49 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

really. What happens if you do the following;
Code:
apt-cache search libevent-2
?

It should be there since it is listed at:
http://packages.debian.org/squeeze-b...libevent-2.0-5

Evo2.
 
Old 05-30-2013, 09:30 PM   #7
Abscissa256
Member
 
Registered: Aug 2011
Posts: 79

Original Poster
Rep: Reputation: Disabled
I get nothing from that. No output.
 
Old 05-30-2013, 09:34 PM   #8
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

sounds like apt doesn't know about the backports repo. What is the output from "apt-get update"?

Evo2.
 
Old 05-30-2013, 09:49 PM   #9
Abscissa256
Member
 
Registered: Aug 2011
Posts: 79

Original Poster
Rep: Reputation: Disabled
Hmm, maybe there's something wrong with the server. There's different results I'll get running that same command different times:

Code:
Hit http://ppa.quickbuild.pearsoncomputing.net squeeze Release.gpg                           
Ign http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-v3.5.13/debian/ squeeze/main Translation-en
Ign http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-v3.5.13/debian/ squeeze/main Translation-en_US
Hit http://ppa.quickbuild.pearsoncomputing.net squeeze Release.gpg                           
Ign http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-builddeps-v3.5.13/debian/ squeeze/main Translation-en
Ign http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-builddeps-v3.5.13/debian/ squeeze/main Translation-en_US
Hit http://ppa.quickbuild.pearsoncomputing.net squeeze Release                               
Hit http://ppa.quickbuild.pearsoncomputing.net squeeze Release                               
Hit http://security.debian.org squeeze/updates Release.gpg                                   
Ign http://security.debian.org/ squeeze/updates/main Translation-en                          
Ign http://security.debian.org/ squeeze/updates/main Translation-en_US                      
Hit http://security.debian.org squeeze/updates Release                                      
Hit http://security.debian.org squeeze/updates/main Sources                                  
Hit http://ppa.quickbuild.pearsoncomputing.net squeeze/main Sources
Hit http://security.debian.org squeeze/updates/main i386 Packages
Hit http://ppa.quickbuild.pearsoncomputing.net squeeze/main i386 Packages                
Hit http://ppa.quickbuild.pearsoncomputing.net squeeze/main Sources
Hit http://ppa.quickbuild.pearsoncomputing.net squeeze/main i386 Packages        
Hit http://ftp.us.debian.org squeeze Release.gpg                                 
Ign http://ftp.us.debian.org/debian/ squeeze/main Translation-en
Ign http://ftp.us.debian.org/debian/ squeeze/main Translation-en_US
Ign http://ftp.us.debian.org squeeze-backports Release.gpg
Ign http://ftp.us.debian.org/debian-backports/ squeeze-backports/main Translation-en
Ign http://ftp.us.debian.org/debian-backports/ squeeze-backports/main Translation-en_US
Hit http://ftp.us.debian.org squeeze Release
Ign http://ftp.us.debian.org squeeze-backports Release
Hit http://ftp.us.debian.org squeeze/main Sources
Hit http://ftp.us.debian.org squeeze/main i386 Packages
Ign http://ftp.us.debian.org squeeze-backports/main i386 Packages
Ign http://ftp.us.debian.org squeeze-backports/main i386 Packages
Err http://ftp.us.debian.org squeeze-backports/main i386 Packages
  404  Not Found [IP: 128.30.2.36 80]
W: Failed to fetch http://ftp.us.debian.org/debian-backports/dists/squeeze-backports/main/binary-i386/Packages.gz  404  Not Found [IP: 128.30.2.36 80]

E: Some index files failed to download, they have been ignored, or old ones used instead.
And a couple times I even got this:

Code:
Hit http://security.debian.org squeeze/updates Release.gpg
Ign http://security.debian.org/ squeeze/updates/main Translation-en             
Ign http://security.debian.org/ squeeze/updates/main Translation-en_US           
Hit http://security.debian.org squeeze/updates Release                           
Hit http://security.debian.org squeeze/updates/main Sources                       
Hit http://security.debian.org squeeze/updates/main i386 Packages
Hit http://ppa.quickbuild.pearsoncomputing.net squeeze Release.gpg
Ign http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-v3.5.13/debian/ squeeze/main Translation-en
Ign http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-v3.5.13/debian/ squeeze/main Translation-en_US
Hit http://ppa.quickbuild.pearsoncomputing.net squeeze Release.gpg
Ign http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-builddeps-v3.5.13/debian/ squeeze/main Translation-en
Ign http://ppa.quickbuild.pearsoncomputing.net/trinity/trinity-builddeps-v3.5.13/debian/ squeeze/main Translation-en_US
Hit http://ppa.quickbuild.pearsoncomputing.net squeeze Release                               
Hit http://ppa.quickbuild.pearsoncomputing.net squeeze Release                       
Hit http://ppa.quickbuild.pearsoncomputing.net squeeze/main Sources                          
Hit http://ppa.quickbuild.pearsoncomputing.net squeeze/main i386 Packages                    
Hit http://ppa.quickbuild.pearsoncomputing.net squeeze/main Sources                  
Hit http://ppa.quickbuild.pearsoncomputing.net squeeze/main i386 Packages            
Err http://ftp.us.debian.org squeeze Release.gpg                                 
  Could not resolve 'ftp.us.debian.org'
Err http://ftp.us.debian.org/debian/ squeeze/main Translation-en
  Could not resolve 'ftp.us.debian.org'
Err http://ftp.us.debian.org/debian/ squeeze/main Translation-en_US
  Could not resolve 'ftp.us.debian.org'
Err http://ftp.us.debian.org squeeze-backports Release.gpg
  Could not resolve 'ftp.us.debian.org'
Err http://ftp.us.debian.org/debian-backports/ squeeze-backports/main Translation-en
  Could not resolve 'ftp.us.debian.org'
Err http://ftp.us.debian.org/debian-backports/ squeeze-backports/main Translation-en_US
  Could not resolve 'ftp.us.debian.org'
Reading package lists... Done
W: Failed to fetch http://ftp.us.debian.org/debian/dists/squeeze/Release.gpg  Could not resolve 'ftp.us.debian.org'

W: Failed to fetch http://ftp.us.debian.org/debian/dists/squeeze/main/i18n/Translation-en.bz2  Could not resolve 'ftp.us.debian.org'

W: Failed to fetch http://ftp.us.debian.org/debian/dists/squeeze/main/i18n/Translation-en_US.bz2  Could not resolve 'ftp.us.debian.org'

W: Failed to fetch http://ftp.us.debian.org/debian-backports/dists/squeeze-backports/Release.gpg  Could not resolve 'ftp.us.debian.org'

W: Failed to fetch http://ftp.us.debian.org/debian-backports/dists/squeeze-backports/main/i18n/Translation-en.bz2  Could not resolve 'ftp.us.debian.org'

W: Failed to fetch http://ftp.us.debian.org/debian-backports/dists/squeeze-backports/main/i18n/Translation-en_US.bz2  Could not resolve 'ftp.us.debian.org'

W: Some index files failed to download, they have been ignored, or old ones used instead.
 
Old 05-30-2013, 09:52 PM   #10
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

yes, so you either need to fix your sources.list or find another mirror etc.

Evo2.
 
Old 05-30-2013, 11:07 PM   #11
Abscissa256
Member
 
Registered: Aug 2011
Posts: 79

Original Poster
Rep: Reputation: Disabled
ftp.ca.debian.org is working, thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to install a single package from Debian SID or Debian Testing on a stable system LXer Syndicated Linux News 0 11-22-2012 04:42 PM
LXer: How to add Debian Squeeze to your Debian Lenny FAI install server LXer Syndicated Linux News 0 09-08-2011 07:21 PM
LXer: How To Install A (Canon) Printer On Debian And Debian-Like Systems LXer Syndicated Linux News 0 05-20-2011 11:01 AM
how can i install debian 5.06 in my pc i have downloaded debian-update-5.0.6-i386-DVD siddtanu Debian 2 10-21-2010 02:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration