Opened 9 years ago

Closed 8 years ago

#48087 closed defect (invalid)

sudo port -fp uninstall installed Error: No ports matched the given expression

Reported by: fcsmark@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

System hangs, so I planned to uninstall and diagnose my system. The following has arisen and I am unable to navigate my way to find a solution on the website. Could you point me to the solution please. Thank you.

Mac-0c4de9b8358f:~ mac$ Mac-0c4de9b8358f:~ mac$ sudo port selfupdate
-bash: Mac-0c4de9b8358f:~: command not found
Mac-0c4de9b8358f:~ mac$ sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.3.3 installed,
MacPorts base version 2.3.3 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
Mac-0c4de9b8358f:~ mac$ xcodebuild -version
Xcode 6.3.2
Build version 6D2105
Mac-0c4de9b8358f:~ mac$ sudo port -fp uninstall installed
Error: No ports matched the given expression
Mac-0c4de9b8358f:~ mac$ 

Change History (4)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Priority: HighNormal

According to the error message, MacPorts believes you do not have any ports installed. Is that true?

comment:2 in reply to:  1 ; Changed 9 years ago by fcsmark@…

Replying to ryandesign@…:

According to the error message, MacPorts believes you do not have any ports installed. Is that true?

I have just run

Last login: Wed Jun 17 09:29:44 on ttys000
Mac-0c4de9b8358f:~ mac$ port outdated
No ports are installed.
Mac-0c4de9b8358f:~ mac$ 

port list does have an extensive list. The output would be several pages. Below however may give you enough information to help me.

Mac-0c4de9b8358f:~ mac$ sudo port clean --all
Password:
Can't map the URL 'file://.' to a port description file ("Could not find Portfile in /Users/mac").

and as you can see, this (from my point of view ) is odd.

I am still wishing to uninstall at this point, but as the sudo port -fp uninstall installed function still fails, I can not see a way to remove macports from the system?

Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 in reply to:  2 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to fcsmark@…:

Replying to ryandesign@…:

According to the error message, MacPorts believes you do not have any ports installed. Is that true?

I have just run

Last login: Wed Jun 17 09:29:44 on ttys000
Mac-0c4de9b8358f:~ mac$ port outdated
No ports are installed.
Mac-0c4de9b8358f:~ mac$ 

Again, that message indicates that MacPorts thinks you have not installed any ports. Is that true? If so, then you can proceed to the next step of uninstallation (removing MacPorts itself).

port list does have an extensive list. The output would be several pages.

That is normal. "port list" shows you all ports that exist in the MacPorts ecosystem—all ports that are available to install, should you wish to do so. On the other hand, "port installed" shows you which ports are installed, and based on what I've seen so far, this too will tell you you have no ports installed.

Below however may give you enough information to help me.

Mac-0c4de9b8358f:~ mac$ sudo port clean --all
Password:
Can't map the URL 'file://.' to a port description file ("Could not find Portfile in /Users/mac").

and as you can see, this (from my point of view ) is odd.

This is normal. You asked MacPorts to clean the port in the current directory (your home directory). There is no port in your home directory, so MacPorts printed an error meant to tell you that. If you instead wanted to clean the work directory of all ports, the correct command is "sudo port clean all". If you wanted to clean all aspects of all ports, including deleting their distfiles, the command would be "sudo port clean --all all".

I am still wishing to uninstall at this point, but as the sudo port -fp uninstall installed function still fails, I can not see a way to remove macports from the system?

Continue following the uninstallation instructions. The first step is to uninstall any installed ports. Based on everything I've read in this ticket, you do not have any ports installed, so you can skip this step and move on to the next one.

comment:4 Changed 8 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed

There is nothing to fix here. Since Trac is not for tech support, follow-up on the Macports Users mailing list instead.

Note: See TracTickets for help on using tickets.