Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: [SOLVED] Can't remove phpmyadmin - package install

  1. #1
    Join Date
    Aug 2008
    Beans
    21
    Distro
    Ubuntu 8.04 Hardy Heron

    Exclamation [SOLVED] Can't remove phpmyadmin - package install

    Hey all,

    I have been working little by little to get a LAMP server up and running. I have Apache 2 working fine, PHP working fine and MySQL working fine. I wanted to use phpmyadmin.
    So I ran
    Code:
    sudo apt-get install phpmyadmin
    Did not work. Then I read that there has to be an include in the apache.conf file:
    Include /etc/phpmyadmin/apache.conf

    so I added that and it still did not work.

    So I decided to uninstall and reinstall thinking it might have been the package I got.

    Here is what I get:
    Code:
    sudo apt-get remove phpmyadmin
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      phpmyadmin
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    After this operation, 10.3MB disk space will be freed.
    Do you want to continue [Y/n]? Y
    (Reading database ... 95670 files and directories currently installed.)
    Removing phpmyadmin ...
    dpkg (subprocess): unable to execute pre-removal script: Exec format error
    dpkg: error processing phpmyadmin (--remove):
     subprocess pre-removal script returned error exit status 2
    Errors were encountered while processing:
     phpmyadmin
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    So I did a lot of looking on the web and found some things to try such as looking at the phpmyadmin.prerm and phpmyadmin.postrm scripts. The phpmyadmin.postrm was blank and still is. The phpmyadmin.prerm script is blank also.
    I didn't think this was correct but couldn't find anything about them.

    I have tried:
    Code:
    sudo dpkg --remove --force-remove-reinstreq phpmyadmin
    (Reading database ... 95670 files and directories currently installed.)
    Removing phpmyadmin ...
    dpkg (subprocess): unable to execute pre-removal script: Exec format error
    dpkg: error processing phpmyadmin (--remove):
     subprocess pre-removal script returned error exit status 2
    Errors were encountered while processing:
     phpmyadmin
    Also tried:
    Code:
     sudo dpkg-reconfigure phpmyadmin
    apache2: Syntax error on line 300 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf.d/phpmyadmin.conf: No such file or directory
       ...fail!
    invoke-rc.d: initscript apache2, action "reload" failed.
    This is line 300 of /etc/apache2/apache2.conf:
    Include /etc/apache2/conf.d/

    I am really out of ideas. I really just want it to truly go away so I can reinstall it.

    Any ideas/suggestions will be greatly appreciated!

    Thanks AT
    Last edited by a.thomas; August 6th, 2008 at 01:25 PM.

  2. #2
    Join Date
    Aug 2008
    Beans
    21
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Can't remove phpmyadmin - package install

    Anybody?

    I am really stuck... someone has to have an idea.

  3. #3
    Join Date
    Aug 2008
    Beans
    21
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Can't remove phpmyadmin - package install

    Solved my own problem...

  4. #4
    Join Date
    May 2008
    Location
    Puerto Rico
    Beans
    65
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Can't remove phpmyadmin - package install

    Quote Originally Posted by a.thomas View Post
    Solved my own problem...
    I wish I could have helped, but honestly didn't know the answer. Nonetheless, would be great for the community if your solution is posted here. Could help someone -including myself- in the future.
    - "We are not because of our skills, but because of our choices" -- Dumbledore, in "The Prisoner of Azkaban"
    - "Say it like if I was 8 years old" -- Denzel Washington, in "Philadelphia"

  5. #5
    Join Date
    Aug 2008
    Beans
    21
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: [SOLVED] Can't remove phpmyadmin - package install

    Well, after extension searching and finding things I already tried, I went to where the phpmyadmin.prerm, phpmyadmin.postrm, etc scripts where and deleted them manually.

    Code:
    cd /var/lib/dpkg/info/
    Code:
     ls -l phpmyadmin.*
    -rw-r--r-- 1 root root   165 2008-03-05 21:42 phpmyadmin.conffiles
    -rwxr-xr-x 1 root root   287 2008-03-05 21:42 phpmyadmin.config
    -rw-r--r-- 1 root root 33524 2008-08-06 11:31 phpmyadmin.list
    -rw-r--r-- 1 root root 51996 2008-03-05 21:42 phpmyadmin.md5sums
    -rwxr-xr-x 1 root root  3286 2008-03-05 21:42 phpmyadmin.postinst
    -rwxr-xr-x 1 root root  1762 2008-03-05 21:42 phpmyadmin.postrm
    -rwxr-xr-x 1 root root  1762 2008-08-06 09:12 phpmyadmin.postrm.orig
    -rwxr-xr-x 1 root root   339 2008-03-05 21:42 phpmyadmin.preinst
    -rw-r--r-- 1 root root 22441 2008-03-05 21:42 phpmyadmin.templates
    then I deleted those files
    Code:
    sudo rm -r phpmyadmin.*
    then I ran
    Code:
    sudo apt-get clean
    Code:
    sudo apt-get update
    I wanted to see if the package was still around, so I ran
    Code:
    sudo apt-get remove phpmyadmin
    I got the response that the package was not installed so it couldn't not be removed.

    FINALLY!

    So from there I just ran
    Code:
    sudo apt-get install phpmyadmin
    and voila! Back to normal.

    I hope this does help someone, because I look to Ubuntu forums for a lot of answers.

    Thanks,
    AT

  6. #6
    Join Date
    May 2008
    Location
    Puerto Rico
    Beans
    65
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: [SOLVED] Can't remove phpmyadmin - package install

    Well thx, I wish I had those lines some weeks ago.
    - "We are not because of our skills, but because of our choices" -- Dumbledore, in "The Prisoner of Azkaban"
    - "Say it like if I was 8 years old" -- Denzel Washington, in "Philadelphia"

  7. #7
    Join Date
    Aug 2008
    Beans
    21
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: [SOLVED] Can't remove phpmyadmin - package install

    Nobody had any suggestions, so I just made it happen...
    Last edited by a.thomas; August 7th, 2008 at 09:40 PM.

  8. #8
    Join Date
    Jul 2010
    Location
    São Paulo, Brazil
    Beans
    2
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: [SOLVED] Can't remove phpmyadmin - package install

    Wow! Thank you!

    Yes, it helped someone! =)

  9. #9
    Join Date
    Oct 2007
    Beans
    23
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: [SOLVED] Can't remove phpmyadmin - package install

    add me to that list ofpeople it helped ;D thanks.

  10. #10
    Join Date
    Jul 2008
    Beans
    10

    Lightbulb Re: [SOLVED] Can't remove phpmyadmin - package install

    I had a similar problem (though not exactly the same). Bottom line : stuck with a half-baked install of phpmyadmin, couldn't remove it, got bunches of the likes of
    Code:
    /var/lib/dpkg/info/phpmyadmin.postinst: 42: dbc_go: not found
    and though I don't perfectly understand the hows and whys of what you did it inspired me and I also removed all the phpmyadmin.* in
    Code:
    /var/lib/dpkg/info/
    and thus was able to remove phpmyadmin.

    Thanxxxxxxxxxxxxxxx !

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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