Results 1 to 10 of 10
  1. #1

    Question Apache wont upgrade (Debian)

    Hi,

    This is my first post here, so, hello all!

    The problem is: I have a virtual server with Debian 5 installed.

    Whenever I run "apt-get update" and "apt-get upgrade", it wont upgrade Apache, MySQL or PHP.

    The current versions are:

    Apache 2.2.3 (Newest version is 2.2.13 I think)
    MySQL Client API version 5.0.32 (From phpinfo, dont know if this is the server version)
    PHP: 5.2.0-8 (The newest is 5.3.0 of couse)


    My sources.list file: (I had to insert spaces because i'm new here, so links aren't allowed)
    deb ht tp://security.debian.org etch/updates main contrib non-free
    deb-src ht tp://security.debian.org/ etch/updates main contrib non-free

    deb ht tp://ftp.de.debian.org/debian/ etch main contrib non-free
    deb-src ht tp://ftp.de.debian.org/debian/ etch main contrib non-free

    What am I doing wrong here? Do I need to add some sources or run other commands?

  2. #2
    it's possible that the repository of debian is not updated yet, if you really need the latest version you have to compile it your self
    HalfDedi.com Half Dedicated Half Price
    We provide affordable VPS hosting solution Singapore datacenter

  3. #3
    It's just, Apache 2.2.3 was released in 2006, It cant be right, that a newer version isn't in the repository.

    Is there some unofficial (but safe) repository I can add?

  4. #4
    Join Date
    Jun 2007
    Location
    Manila
    Posts
    150
    Find a BIG list here http://www.apt-get.org/ .

  5. #5
    Thanks zoticaic, I've looked at that page before, but that confuses me even more. I can't find any source, that will let me upgrade to a newer version of Apache.

  6. #6
    Join Date
    Apr 2002
    Location
    Auckland - New Zealand
    Posts
    1,572
    You're running debian 4.0 (etch) - latest stable is 5.0 (Lenny) http://www.debian.org/releases/stable/

    Change the word 'etch' to 'stable' in your sources.list - then you need to dist-upgrade to install all the latest packages. Make sure you take the recommended steps to do a dist-upgrade but it should be pretty simple.

  7. #7
    Doh, you're right. I thought I was running 5.0, lol.

    Thanks, I will try a dist-upgrade

  8. #8
    Join Date
    Dec 2004
    Location
    Butler,TN
    Posts
    2,413
    Hi!
    I should point out I've had problems with Deb 5 and installing php properly. I finally got so fustrated with the entire lot I built everything from source..except for MySQL..of course. I prefer mySQL's binaries on anything..period. No RPM install follies.

    I recommend other to do the same..it takes more time..but you learn more.

    Bryon
    Bryon L Harvey
    Soil Relocation Engineer

  9. #9
    Join Date
    Apr 2002
    Location
    Auckland - New Zealand
    Posts
    1,572
    Even better, learn how to build packages from sources, for whatever distro you use.

  10. #10
    As mentioned above, looks like you're running Debian 4 and not 5. the wrong image/template was setup on your VPS or something weird happened. Check in your control panel what version of Debian you're running or try "cat /etc/debian_version" in bash.

    If it's really Debian 5 but somehow the sources.list contains the Debian 4 repository instead of the one for Debian 5,

    change this

    deb http://ftp.de.debian.org/debian/ etch main contrib non-free
    deb-src http://ftp.de.debian.org/debian/ etch main contrib non-free

    deb http://security.debian.org etch/updates main contrib non-free
    deb-src http://security.debian.org/ etch/updates main contrib non-free
    to this

    deb http://ftp.de.debian.org/debian/ lenny main contrib non-free
    deb-src http://ftp.de.debian.org/debian/ lenny main contrib non-free

    deb http://security.debian.org lenny/updates main contrib non-free
    deb-src http://security.debian.org/ lenny/updates main contrib non-free
    in your /etc/apt/sources.list file and run aptitude update to apt-get update.

    You can also replace "lenny" by "stable", but keep in mind that once the status of squeeze, the current testing version, will be updated to "stable" all the packages will be updated to reflect the new stable version. If you're running your vps in a production environment, you might want to think twice before doing this.
    Last edited by chris34; 09-19-2009 at 05:23 PM.

Similar Threads

  1. Upgrade Xen VPS to Debian Lenny?
    By nemebean in forum Hosting Security and Technology
    Replies: 3
    Last Post: 04-28-2009, 03:41 PM
  2. apache wont start
    By HW-David in forum Hosting Security and Technology
    Replies: 3
    Last Post: 04-06-2008, 07:10 PM
  3. Kernel upgrade on Debian
    By ABW in forum Hosting Security and Technology
    Replies: 2
    Last Post: 05-23-2007, 01:01 PM
  4. Apache wont start
    By jsonline2k3 in forum Hosting Security and Technology
    Replies: 8
    Last Post: 02-20-2006, 01:04 PM
  5. upgrade your redhat to debian..
    By Slidey in forum Hosting Security and Technology
    Replies: 27
    Last Post: 02-24-2004, 12:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •