LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-24-2011, 11:01 AM   #1
chachi95
LQ Newbie
 
Registered: Dec 2009
Posts: 15

Rep: Reputation: 0
apt-get


Hello,

I'm trying to install lighttpd 1.4.29 on my debian lenny but i got the lighttpd 1.4.19 version.

I was on the debian package website and i see there is only 1.4.19 version for lenny

> http://packages.debian.org/search?su...words=lighttpd

but there is a version 1.4.29 for squeeze.

Can you please tell me how can i install the lighttpd 1.4.29 version with apt-get install lighttpd ?

Thank you for your help.
 
Old 09-24-2011, 11:04 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Debian Lenny is quite old. I'm not sure if it's still supported. You may have to upgrade to Squeeze to get any packages you don't have already. Is there any real need to stick to Lenny rather than upgrading? Let us know if you wish to upgrade and need some help. I see that lighttpd is not available on Lenny Backports.
ciao,
jdk

Last edited by jdkaye; 09-24-2011 at 11:07 AM.
 
Old 09-24-2011, 11:06 AM   #3
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Ubuntu
Posts: 794

Rep: Reputation: 56
Here's what you can do, but the Debian devs recommend avoiding packages from other versions of Debian. I've installed a couple without issue, and here's how you do it.

First of all know that "apt-get install anything" just installs the version in the repositories for your version of Debian. You can go to http://packages.debian.org/search?su...words=lighttpd and download the lenny version and install that manually. They let you download packages from that site manually. The problem with doing it this way is that you won't get security updates pushed by the Debian devs that you would normally get if you were running that version on Squeeze, or running the version from your repositories. Also if there are any dependencies you may have to go download those manually if they have to be certain versions. The few things I've downloaded though, primarily a Sega Genesis emulator that didn't make it into the Squeeze repos, all ran just fine.
 
Old 09-24-2011, 11:19 AM   #4
chachi95
LQ Newbie
 
Registered: Dec 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Hi guys,

Thank you for your reply they are very clear.

So how can i upgrade my machine to the latest debian distribution (squeeze) ?
 
Old 09-24-2011, 11:58 AM   #5
theFreethinker
LQ Newbie
 
Registered: Jul 2011
Location: Tartu, Estonia
Distribution: Ubuntu
Posts: 17

Rep: Reputation: Disabled
Add Debian Squeeze repos to your source.list file
Add to the file /etc/apt/apt.conf following line
Code:
APT::Default-Release "version";
In your case the "version" shall be squeeze, but if you wish you can use "stable", "testing" or even "unstable" as well.
perform
Code:
apt-get update && apt-get dist-upgrade
voila!

Keep in mind, if you use stable, testing or unstable to describe default release, you will get new version of Debian automatically after releasing with dist-upgrade.
 
0 members found this post helpful.
Old 09-24-2011, 12:13 PM   #6
chachi95
LQ Newbie
 
Registered: Dec 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by theFreethinker View Post
Add Debian Squeeze repos to your source.list file
Add to the file /etc/apt/apt.conf following line
Code:
APT::Default-Release "version";
In your case the "version" shall be squeeze, but if you wish you can use "stable", "testing" or even "unstable" as well.
perform
Code:
apt-get update && apt-get dist-upgrade
voila!

Keep in mind, if you use stable, testing or unstable to describe default release, you will get new version of Debian automatically after releasing with dist-upgrade.
if i understood i have to write :
Code:
APT::Default-Release "squeeze stable";
But i don't see any apt.conf file on my machine
 
Old 09-24-2011, 01:10 PM   #7
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Jessie Amd64
Posts: 1,477

Rep: Reputation: Disabled
Before trying to upgrade to the next Stable release,make sure you read the release notes first:

http://www.debian.org/releases/stabl.../index.en.html
 
1 members found this post helpful.
Old 09-24-2011, 02:21 PM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Quote:
Originally Posted by chachi95 View Post

But i don't see any apt.conf file on my machine
Please post the output of this command:
Code:
cat /etc/apt/sources.list
ciao,
jdk
 
Old 09-24-2011, 02:40 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
You don't need apt.conf to upgrade the machine to Squeeze, you can just substitute lenny with squeeze in your /etc/apt/sources.list.
As mentioned before, read the release notes before doing anything and follow the instructions there.
Also, don't forget to make your backups first.
 
1 members found this post helpful.
Old 09-24-2011, 08:18 PM   #10
chachi95
LQ Newbie
 
Registered: Dec 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for your help guys i finally upgraded to squeeze.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
apt-get has unmet dependencies, but apt-get -f install doesn't solve problem sophanox Linux - Software 1 02-23-2011 11:07 AM
LXer: Make apt-get Installations and Upgrades 26x faster with apt-fast LXer Syndicated Linux News 1 10-25-2010 06:14 PM
LXer: Create a Local Ubuntu Repository using Apt-Mirror and Apt-Cacher LXer Syndicated Linux News 0 08-04-2009 11:13 PM
apt pinning /etc/apt/apt.conf parent's_basement Debian 5 10-26-2008 06:50 PM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 01:28 PM


All times are GMT -5. The time now is 04: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration