Opened 3 hours ago

Last modified 3 hours ago

#71366 new defect

Port dos2unix not found

Reported by: bon-ami (Allen) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.4
Keywords: Cc:
Port: dos2unix

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

sudo port install dos2unix
Error: Port dos2unix not found

macOS 12 Monterey

Change History (2)

comment:1 Changed 3 hours ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

Try running sudo port -d selfupdate. If it shows an error message, let us know what it says.

comment:2 Changed 3 hours ago by bon-ami (Allen)

it fails,

DEBUG: Copying /Users/allen/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/selfupdate
--->  Checking for newer releases of MacPorts
DEBUG: Attempting to fetch version file https://raw.githubusercontent.com/macports/macports-base/master/config/RELEASE_URL
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    63  100    63    0     0    120      0 --:--:-- --:--:-- --:--:--   120
MacPorts base version 2.10.4 installed,
MacPorts base version 2.10.4 available.
DEBUG: Rebuilding and reinstalling MacPorts if needed
--->  MacPorts base is already the latest version
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/macports/release/tarballs/ports.tar.gz
DEBUG: system: /usr/bin/rsync -rtzvl --delete-after --include=/ports.tar.gz --include=/ports.tar.gz.rmd160 --exclude=* rsync://rsync.macports.org/macports/release/tarballs/ /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at /AppleInternal/Library/BuildRoots/bc10cbcd-3cda-11ee-b8ac-16228a05f5d2/Library/Caches/com.apple.xbs/Sources/rsync/rsync/io.c(453) [receiver=2.6.9]
Command failed: /usr/bin/rsync -rtzvl --delete-after --include=/ports.tar.gz --include=/ports.tar.gz.rmd160 --exclude=* rsync://rsync.macports.org/macports/release/tarballs/ /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
Exit code: 12
Error: Synchronization of the local ports tree failed doing rsync
DEBUG: Couldn't sync the ports tree: Synchronization of 1 source failed
    while executing
"error "Couldn't sync the ports tree: $eMessage""
    (procedure "do_sync" line 15)
    invoked from within
"do_sync $options 0"
    (procedure "selfupdate::main" line 100)
    invoked from within
"selfupdate::main {ports_no_migration_check 1 options_selfupdate_order {} options_global_order {}} selfupdate_status"
    ("uplevel" body line 1)
    invoked from within
"uplevel [list selfupdate::main $options $updatestatusvar]"
    (procedure "macports::selfupdate" line 2)
    invoked from within
"macports::selfupdate $options selfupdate_status"
Error: Couldn't sync the ports tree: Synchronization of 1 source failed
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: /opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization of 1 source failed
Note: See TracTickets for help on using tickets.