Thread: Problems associated with removing packages from server

  1. #1
    POeT GuY Matus's Avatar
    Join Date
    Feb 2008
    Location
    Bz
    Posts
    235

    Question Problems associated with removing packages from server

    I uninstalled these packages from my ubuntu server :

    apt-get remove postfix postfix-mysql postfix-doc mysql-client mysql-server courier-authdaemon courier-authlib-mysql courier-pop courier-pop-ssl courier-imap courier-imap-ssl postfix-tls libsasl2-2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl phpmyadmin apache2 libapache2-mod-php5 php5 php5-mysql libpam-smbpass


    I did this because i wanted a fresh reinstall, but after i did it i've been finding some problems. Anytime i type the Ip of my server on the webbrowser, my index page doesnt show up, my phpmyadmin doesnt come up, my cups and samba connection was lost. What did i destroy? what did i do wrong? Someone please help


    The IP of my server is 10.0.11.25 if anyone wants to check my errors i get, i know its the removing of those packages that i did wrong. But cnt figure it
    Last edited by Matus; 03-17-2009 at 07:47 PM.
    PoEms R InsPiRatiOns of LIfE ExpErienCes!!


  2. #2
    POeT GuY Matus's Avatar
    Join Date
    Feb 2008
    Location
    Bz
    Posts
    235
    Ok i figured the CUPS and Samba, it needed to be reinstalled. I still have problems with PHP myadmin though.

    Whenever i type: 10.0.11.25/phpmyadmin on the browser i get this message:

    you have chosen to open which is a PHTML file: What should firefox do?


    this happens either with wordpress, or any other thing that deals with php and mysql it looks like.
    PoEms R InsPiRatiOns of LIfE ExpErienCes!!


  3. #3
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    Well, you removed php5, and you expect PHP scripts (such as phpmyadmin and wordpress) to continue working? And postfix, too, in case you haven't noticed, your SMTP should be broken by now, too (if you use it).

    *edit*
    Oh, and apache.

    CUPS and SAMBA probably depends on some of those packages, so they got uninstalled, too. Next time, check the dependency list before answering "Y" to apt-get.
    */edit*

  4. #4
    POeT GuY Matus's Avatar
    Join Date
    Feb 2008
    Location
    Bz
    Posts
    235
    Quote Originally Posted by cyberfish View Post
    Well, you removed php5, and you expect PHP scripts (such as phpmyadmin and wordpress) to continue working? And postfix, too, in case you haven't noticed, your SMTP should be broken by now, too (if you use it).

    *edit*
    Oh, and apache.

    CUPS and SAMBA probably depends on some of those packages, so they got uninstalled, too. Next time, check the dependency list before answering "Y" to apt-get.
    */edit*

    Ok but i have already runned apt-get install what i removed from the first command i executed that removed my programs. It says all packages have been installed, so i can't find the problem. U think it's not installing still?
    PoEms R InsPiRatiOns of LIfE ExpErienCes!!


  5. #5
    POeT GuY Matus's Avatar
    Join Date
    Feb 2008
    Location
    Bz
    Posts
    235
    Quote Originally Posted by cyberfish View Post
    CUPS and SAMBA probably depends on some of those packages, so they got uninstalled, too. Next time, check the dependency list before answering "Y" to apt-get.
    */edit*

    I'm just learning about all this depency thing, how would i check what packages are needed, or probably needed, like u said maybe some were dependent on others?
    PoEms R InsPiRatiOns of LIfE ExpErienCes!!


  6. #6
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    Problem is, say if you have packages A, B, and C, where C depends on A.

    If you do "apt-get remove A B", ALL of A, B and C will be removed, since C cannot function without A.

    Then, if you do "apt-get install A B", A and B will be installed, but not C, since A and B don't depend on C.

    Your best bet is probably to fire up synaptic and search for the names of the packages you need (samba, cups), and install everything that you think you may need.

  7. #7
    POeT GuY Matus's Avatar
    Join Date
    Feb 2008
    Location
    Bz
    Posts
    235
    Quote Originally Posted by cyberfish View Post
    Problem is, say if you have packages A, B, and C, where C depends on A.
    Just typed in "Aptitude", how do i go about finding the programs missing u know?
    PoEms R InsPiRatiOns of LIfE ExpErienCes!!


  8. #8
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    I'm just learning about all this depency thing, how would i check what packages are needed, or probably needed, like u said maybe some were dependent on others?
    http://packages.ubuntu.com/
    and search for the package.

    When you try to do apt-get remove, it will also tell you packages that would also be automatically uninstalled.
    For example -
    Code:
    cyberfish@cyberfish-desktop:/local_data/wiki$ sudo apt-get remove gcc
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      build-essential eclipse-cdt g++ gcc gccxml libboost-python1.35-dev
    0 upgraded, 0 newly installed, 6 to remove and 16 not upgraded.
    After this operation, 35.7MB disk space will be freed.
    Do you want to continue [Y/n]? n
    Abort.
    Even though I only asked for GCC to be removed, 5 other packages will also need to be removed since they depend on GCC.

  9. #9
    POeT GuY Matus's Avatar
    Join Date
    Feb 2008
    Location
    Bz
    Posts
    235
    Yea, thanks Cyberfish the important thing now i know, it all has to do with missing packages, i'll see how i fix it up, and find out what exactly is missing. Damn this thing is hectic , never thought servers were all this complicated
    PoEms R InsPiRatiOns of LIfE ExpErienCes!!


  10. #10
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    APT keeps a log in /var/log/apt/term.log

    That might help.

  11. #11
    POeT GuY Matus's Avatar
    Join Date
    Feb 2008
    Location
    Bz
    Posts
    235
    Quote Originally Posted by cyberfish View Post
    APT keeps a log in /var/log/apt/term.log

    That might help.

    Ok thanks bro, thanks for the time, time to see if i figure it now

    Cheers
    PoEms R InsPiRatiOns of LIfE ExpErienCes!!


  12. #12
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218
    Ok i figured the CUPS and Samba, it needed to be reinstalled. I still have problems with PHP myadmin though.

    Whenever i type: 10.0.11.25/phpmyadmin on the browser i get this message:

    you have chosen to open which is a PHTML file: What should firefox do?


    this happens either with wordpress, or any other thing that deals with php and mysql it looks like.
    This may sound really dumb, but you have restarted apache after reinstalling PHP right?

    AFAIK uninstalling then reinstalling the wordpress package through apt-get should give you everything you need for a LAMP server if you dont already have what you need.

  13. #13
    POeT GuY Matus's Avatar
    Join Date
    Feb 2008
    Location
    Bz
    Posts
    235
    Quote Originally Posted by mike_g View Post
    This may sound really dumb, but you have restarted apache after reinstalling PHP right?

    AFAIK uninstalling then reinstalling the wordpress package through apt-get should give you everything you need for a LAMP server if you dont already have what you need.
    Hmm yes i restarted teh apache server. I did the reinstallation of wordpress just now, and still nothing, it prompts me that it's a phtml file, and what should firefox do download or open? This has gotten me so annoyed, I've installed lots of packages, and still nothing, i dont know what i'm missing :S

    Even when i do a : 10.0.11.25/testphp.php it says its a php file, what should firefox do?
    PoEms R InsPiRatiOns of LIfE ExpErienCes!!


  14. #14
    Resu Deretsiger Nightowl's Avatar
    Join Date
    Nov 2008
    Location
    /dev/null
    Posts
    186
    Have you installed libapache2-mod-php5, or did you just install the php5 package?
    Do as I say, not as I do . . .

    Experimentation is the essence of programming. Just remember to make a backup first.

    "I'm a firm believer that <SomeGod> gave us two ears and one mouth for a reason - we are supposed to listen, twice as much as we talk." - LEAF

    Questions posted by these guidelines are more likely to be answered.

    Debian GNU/Linux user, with the awesome window manager, the git version control system, and the cmake buildsystem generator.

  15. #15
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    Even when i do a : 10.0.11.25/testphp.php it says its a php file, what should firefox do?
    That means your PHP is not working, so apache is just sending the source to the browser. Normally, PHP would run the script first, and output HTML, which apache then return to the browser.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple Client - Server problems (Async Sockets )
    By Cpp_Noob in forum Networking/Device Communication
    Replies: 4
    Last Post: 06-19-2009, 07:12 AM
  2. Commerical MMORPG Developer Opp
    By Th3Guy in forum Projects and Job Recruitment
    Replies: 19
    Last Post: 01-22-2007, 11:28 AM
  3. Visual Studio and FTP Server...
    By Grayson_Peddie in forum Networking/Device Communication
    Replies: 0
    Last Post: 09-03-2003, 12:31 PM
  4. Simple Server problems...
    By Unregistered in forum C++ Programming
    Replies: 0
    Last Post: 10-20-2001, 08:51 PM
  5. Socket Problems
    By (TNT) in forum Windows Programming
    Replies: 4
    Last Post: 08-18-2001, 06:59 AM