Opened 11 years ago
Closed 11 years ago
#39941 closed defect (duplicate)
sudo port upgrade <port> fails to untar the archive (permissions problem)
Reported by: | sicot@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.2.0 |
Keywords: | permissions, sudo | Cc: | sicot@… |
Port: |
Description
Since I updated to macports 2.2.0, I am no longer able to upgrade the outdated ports. For instance
> sudo port upgrade bison
gives
---> Computing dependencies for bison ---> Fetching distfiles for bison ---> Attempting to fetch bison-3.0.tar.xz from http://mirrors.ibiblio.org/gnu/ftp/gnu/bison ---> Verifying checksums for bison ---> Extracting bison Error: org.macports.extract for port bison returned: command execution failed Please see the log file for port bison for details: /Users/sicot/macports/var/macports/logs/_Volumes_DATA_Users_sicot_macports_var_macports_sources_www.macports.org_files_ports_devel_bison/bison/main.log Error: Unable to upgrade port: 1 To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets
The log file shows that there is a problem of permissions despite the sudo command (the full log is enclosed):
:debug:extract Executing command line: cd "/Users/sicot/macports/var/macports/build/_Volumes_DATA_Users_sicot_macports_var_macports_sources_www.macports.org_files_ports_devel_bison/bison/work" && /Users/sicot/macports/bin/xz -dc '/Users/sicot/macports/var/macports/distfiles/bison/bison-3.0.tar.xz' | /usr/bin/gnutar --no-same-owner -xf - :info:extract /usr/bin/gnutar: bison-3.0: Cannot mkdir: Operation not permitted :info:extract /usr/bin/gnutar: bison-3.0/.prev-version: Cannot open: No such file or directory ...
When I run the command manually (with sudo), it works. It is like macports does not run the command with sudo permissions but when I intentionally run without sudo i get the expected error:
> port upgrade bison Error: Insufficient privileges to write to MacPorts install prefix.
I did not installed macports in /opt/local because of HD partitioning made by my IT department. I don't know if it related. i run macos 10.7.5.
Attachments (1)
Change History (3)
Changed 11 years ago by sicot@…
comment:2 Changed 11 years ago by neverpanic (Clemens Lang)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
That's #39850.
Note: See
TracTickets for help on using
tickets.
main.log