Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#21010 closed defect (fixed)

selfupdate failed: User root does not own /opt/local

Reported by: domsou@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.8.2
Component: base Version: 1.7.1
Keywords: selfupdate Cc: nerdling (Jeremy Lavergne)
Port:

Description

$ sudo port selfupdate

MacPorts base version 1.710 installed
Downloaded MacPorts base version 1.800
Error: /opt/local/bin/port: port selfupdate failed: User root does not own /opt/local - try using sudo

That's a funny situation !

Further details

I am running Mac OS 10.5.8.
/opt/local group is admin
Everything worked fine before this error.

Change History (9)

comment:1 Changed 15 years ago by domsou@…

Cc: domsou@… added

Cc Me!

comment:2 Changed 15 years ago by tobypeterson

Cc: domsou@… removed

comment:3 Changed 15 years ago by nerdling (Jeremy Lavergne)

Cc: snc@… added
Component: portsbase

Can you check that /opt and /opt/local are 755 root:admin?

I'd just trash /opt/local and use the package installer. :-)

comment:4 Changed 15 years ago by nerdling (Jeremy Lavergne)

Oh, but you're not using 10.6 yet. Don't trash it! my bad

comment:5 Changed 15 years ago by domsou@…

Hi !

$ cd /opt/local
$ ls -la
total 16
drwxr-xr-x   4 domsou  admin   136 15 jul 02:06 .
drwxrwxr-t@ 35 root           admin  1258  2 sep 10:40 ..
-rw-r--r--@  1 domsou  admin  6148 23 jul 01:36 .DS_Store
drwxr-xr-x  16 domsou  admin   544  1 sep 19:18 local

Trash /opt/local/ ans use the package installer will work I presume. But I don't want to do this because I have a professional Apache/MySQL PHP configuration running and re-install it may takes time and then leads to errors : not for now !

And next week I gonna switch to 10.6 !

comment:6 Changed 15 years ago by nerdling (Jeremy Lavergne)

Well, if you had archive mode going you could copy your packages in again by placing the archives in var/macports/packages/darwin/i386

If not, just wait a week :-)

You might also be able to install the disk image overtop rather than deleting /opt/local

comment:7 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Sefupdate failed : permission rightsselfupdate failed: User root does not own /opt/local

So the message is correct at least: root does not own /opt/local (domsou does)

comment:8 Changed 15 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Should be fixed by r60798.

comment:9 Changed 15 years ago by jmroot (Joshua Root)

Milestone: MacPorts 1.8.2

Merged to 1.8 branch in r60799.

Note: See TracTickets for help on using tickets.