Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#36650 closed defect (invalid)

db46: can't create work symlink: permission denied

Reported by: l.hoffman@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: l.hoffman@…
Port: db46

Description

I have upgraded to OS 10.8.2 and need to upgrade MacPorts to run Gwyddion. Installing Xcode and the latest version of MacPorts went fine. Updating the ports went fine. When I tried to get the ports 'updraded' I received the following error:

Error: Unable to upgrade port: symlink: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/databases/db46/work -> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_db46/db46/work: permission denied

I have admin privileges on this machine. Any suggestions as to what might be the issue?

Attachments (1)

error.pdf (16.1 KB) - added by l.hoffman@… 12 years ago.

Download all attachments as: .zip

Change History (6)

Changed 12 years ago by l.hoffman@…

Attachment: error.pdf added

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

Port: db46 added; symlink removed
Resolution: invalid
Status: newclosed
Summary: Error: Unable to upgrade port: symlinkdb46: can't create work symlink: permission denied
Type: updatedefect

You need to preface your commands with "sudo" when you want to do things that alter the files installed by MacPorts.

sudo port upgrade outdated

comment:2 Changed 12 years ago by l.hoffman@…

Resolution: invalid
Status: closedreopened

I do use "sudo" to begin with. I typed "sudo port selfupdate", which ran successfully. Then, when attempting "port update outdated", I received the error described above. Since earlier, I have gone through the process again with identical results. Any other suggestions?

Last edited 12 years ago by l.hoffman@… (previous) (diff)

comment:3 Changed 12 years ago by l.hoffman@…

When I added the preface "sudo" to the latter command, I now receive the following error:

Error: Unable to upgrade port: couldn't open "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_db46/db46/work/.macports.db46.state": permission denied
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 12 years ago by l.hoffman@…

Cc: l.hoffman@… added

Cc Me!

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

Resolution: invalid
Status: reopenedclosed

Replying to l.hoffman@…:

I do use "sudo" to begin with. I typed "sudo port selfupdate", which ran successfully. Then, when attempting "port update outdated", I received the error described above. Since earlier, I have gone through the process again with identical results. Any other suggestions?

You needed to have used "sudo" in front of the "port update outdated" command too.

Replying to l.hoffman@…:

When I added the preface "sudo" to the latter command, I now receive the following error:

Error: Unable to upgrade port: couldn't open "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_db46/db46/work/.macports.db46.state": permission denied

Try cleaning the port, both with and without sudo:

port clean db46
sudo port clean db46

Then try upgrading it again.

If all else fails you can manually delete the directory /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_db46 and then try again.

Note: See TracTickets for help on using tickets.