LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot deinstal or reinstall prot/package. Error: An older version already exists (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-deinstal-or-reinstall-prot-package-error-an-older-version-already-exists-801040/)

redir 04-09-2010 09:23 AM

Cannot deinstal or reinstall prot/package. Error: An older version already exists
 
I am trying to install the apr port on freeBSD and I get the following error:

Code:

===>  Checking if devel/apr already installed
===>  An older version of devel/apr is already installed (apr-db42-1.2.8_2)
      You may wish to ``make deinstall'' and install this port again
      by ``make reinstall'' to upgrade it properly.
      If you really wish to overwrite the old port of devel/apr
      without deleting it first, set the variable "FORCE_PKG_REGISTER"
      in your environment or the "make install" command line.
*** Error code 1

So then I try to do what it says and deinstall the port:

Code:

toblocal# make deinstall clean
===>  Deinstalling for devel/apr
===>  Cleaning for apr-ipv6-gdbm-db42-mysql-1.3.9.1.3.9_1
toblocal#

So that looks good now I will try to reinstall it, and it does a lot of work which finally ends in:
Code:

===>  An older version of devel/apr is already installed (apr-db42-1.2.8_2)
      You may wish to ``make deinstall'' and install this port again
      by ``make reinstall'' to upgrade it properly.
      If you really wish to overwrite the old port of devel/apr
      without deleting it first, set the variable "FORCE_PKG_REGISTER"
      in your environment or the "make install" command line.
*** Error code 1

It's like an endless loop. Any suggestions?

Thanks in advance.

redir 04-09-2010 10:36 AM

Ok I found the solution was to just run portupgrade -R <packagename> not sure I why I got in that loop but so be it.


All times are GMT -5. The time now is 08:15 PM.