MAC安装MacPorts 卡在“正在运行软件包脚本”的解决办法
MAC安装MacPorts 卡在“正在运行软件包脚本”的解决办法
点击右上角强制结束掉“安装器”
打开terminal, 输入命令“ps -ef | grep install”, 找到遗留进程, kill掉
安装Xcode
输入命令“xcodebuild -license” 并同意
MacPorts卡住是因为在安装过程中安装脚本使用了Rsync更新, 即使翻了墙, 由于Rsync是系统进程, 所以大部分fq软件都不会代理
解决办法: 使用proxifier实现全局代理。并把“System processes”勾上,实现系统进程的代理。如下图所示

终端输入sudo port -d selfupdate, 此时proxifier会显示rsync通过隧道

szhdeiMac-Pro:~ szh$ sudo port -d selfupdate
Password:
DEBUG: Copying /Users/szh/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
---> Updating MacPorts base sources using rsync
DEBUG: system: /usr/bin/rsync -rtzvl --delete-after rsync://rsync.macports.org/macports/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
Willkommen auf dem RSYNC-server auf ftp.fau.de.
Nicht all unsere Mirror sind per rsync verfuegbar.
Welcome to the RSYNC daemon on ftp.fau.de.
Not all of our mirrors are available through rsync.
receiving file list ... done
sent 16 bytes received 55 bytes 15.78 bytes/sec
total size is 85712384 speedup is 1207216.68
DEBUG: system: /usr/bin/rsync -rtzvl --delete-after rsync://rsync.macports.org/macports/release/tarballs/base.tar.rmd160 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
Willkommen auf dem RSYNC-server auf ftp.fau.de.
Nicht all unsere Mirror sind per rsync verfuegbar.
Welcome to the RSYNC daemon on ftp.fau.de.
Not all of our mirrors are available through rsync.
receiving file list ... done
sent 16 bytes received 62 bytes 31.20 bytes/sec
total size is 512 speedup is 6.56
DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: system: /usr/bin/tar -C /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/tmp -xf /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/base.tar
MacPorts base version 2.6.2 installed,
DEBUG: Rebuilding and reinstalling MacPorts if needed
MacPorts base version 2.6.2 downloaded.
---> Updating the ports tree
Synchronizing local ports tree from rsync://aarnet.au.rsync.macports.org/pub/macports/ports/
DEBUG: system: /usr/bin/rsync -rtzvl --delete-after '--exclude=/PortIndex*' rsync://aarnet.au.rsync.macports.org/pub/macports/ports/ /opt/local/var/macports/sources/aarnet.au.rsync.macports.org/pub/macports
Welcome to mirror.aarnet.edu.au - AARNet's mirror service
--------------------------------------------------------------------
Content is available via:
rsync://mirror.aarnet.edu.au/
http://mirror.aarnet.edu.au/
Please read the FAQ at:
https://support.aarnet.edu.au/hc/en-us/categories/202837867-Mirror
--------------------------------------------------------------------
Feedback and queries are welcome to mirror@aarnet.edu.au
receiving file list ... done
./
graphics/vtk/
graphics/vtk/Portfile
perl/p5-net-ident/
perl/p5-net-ident/Portfile
python/py-argh/
python/py-argh/Portfile
python/py-photutils/
python/py-photutils/Portfile
x11/blackbox/
x11/blackbox/Portfile
sent 299 bytes received 782280 bytes 20868.77 bytes/sec
total size is 47949331 speedup is 61.27
DEBUG: system: chmod -R a+r /opt/local/var/macports/sources/aarnet.au.rsync.macports.org/pub/macports
DEBUG: system: /opt/local/bin/portindex /opt/local/var/macports/sources/aarnet.au.rsync.macports.org/pub/macports
Creating port index in /opt/local/var/macports/sources/aarnet.au.rsync.macports.org/pub/macports
Adding port devel/libgee
Adding port graphics/vtk
Adding port ocaml/ocaml-cppo
Adding subport ocaml-cppo_ocamlbuild
Adding port ocaml/ocaml-ppx_tools_versioned
Adding port perl/p5-net-ident
Adding subport p5.26-net-ident
Adding subport p5.28-net-ident
Adding subport p5.30-net-ident
Adding port python/py-argh
Adding subport py27-argh
Adding subport py35-argh
Adding subport py36-argh
Adding subport py37-argh
Adding port python/py-backports-ssl_match_hostname
Adding subport py27-backports-ssl_match_hostname
Adding port python/py-photutils
Adding subport py36-photutils
Adding subport py37-photutils
Adding subport py27-photutils
Adding subport py34-photutils
Adding subport py35-photutils
Adding port python/py-prometheus_client
Adding subport py27-prometheus_client
Adding subport py35-prometheus_client
Adding subport py36-prometheus_client
Adding subport py37-prometheus_client
Adding subport py38-prometheus_client
Adding port science/gr-osmosdr
Adding subport gr-osmosdr-38
Adding port x11/blackbox
Total number of ports parsed: 31
Ports successfully parsed: 31
Ports failed: 0
Up-to-date ports skipped: 22753
---> MacPorts base is already the latest version
DEBUG: Setting MacPorts sources ownership to root
The ports tree has been updated. To upgrade your installed ports, you should run
port upgrade outdated
MAC安装MacPorts 卡在“正在运行软件包脚本”的解决办法的更多相关文章
- PowerShell在激活virtualenv虚拟环境时禁止运行的脚本的解决办法
问题描述 在使用Django开发网站项目时,为了便于修改.维护以及项目部署,使用了virtualenv虚拟环境.这个工具允许你维护多个分离的Python环境,每个都具有它自己的库和包的命名空间.这种情 ...
- ubuntu安装vim时提示 没有可用的软件包 vim,但是它被其它的软件包引用了 解决办法
ubuntu安装vim时提示 没有可用的软件包 vim-gtk3,但是它被其它的软件包引用了 解决办法 本人在ubuntu系统安装vim 输入 sudo apt-get install vim 提示 ...
- Android权限管理之Android 6.0运行时权限及解决办法
前言: 今天还是围绕着最近面试的一个热门话题Android 6.0权限适配来总结学习,其实Android 6.0权限适配我们公司是在今年5月份才开始做,算是比较晚的吧,不过现在Android 6.0以 ...
- CentOS7安装vncserver(启动失败及连接黑屏解决办法)
CentOS7安装vncserver(启动失败及连接黑屏解决办法) 转载weixin_34167043 最后发布于2017-11-09 15:11:00 阅读数 42 收藏 展开 AutoSAR入门 ...
- dell r710 安装ubuntu 12.04 server 启动后进入initramfs解决办法
dell r710 安装ubuntu 12.04 server 启动后进入initramfs解决办法 grub 启动菜单后加入 rootdelay=90, 如下:/boot/vmlinuz-2.6.3 ...
- PHP运行错最有效解决办法Fatal error: Out of memory (allocated 786432) (tried to allocate 98304 bytes) in H:\freehost\zhengbao2\web\includes\lib_common.php on line 744
原文 PHP运行错最有效解决办法Fatal error: Out of memory (allocated 6029312) Fatal error: Out of memory (allocated ...
- Mac版小黑屋提示无法确认开发者身份的解决办法
Mac版小黑屋提示无法确认开发者身份的解决办法 学习了:https://jingyan.baidu.com/article/37bce2be703fa21003f3a259.html 需要按住cont ...
- zabbix3.x安装出现“configure: error: Not found mysqlclient library”的解决办法
一.zabbix3.x安装出现“configure: error: Not found mysqlclient library”的解决办法 1.编译安装zabbix-server出现 编译时加参数:- ...
- Mac本地环境配置以及安装织梦CMS,增加新的坑解决办法
Mac上其实已经自带了Apache和PHP,只是默认关闭的.开启一下就行了. Apache配置 apache已经自带了,只需在“终端”输入命令开启下就行了. 开启apache服务 sudo ap ...
随机推荐
- Cobaltstrike指令/beacon命令大全
browserpivot 注入受害者浏览器进程bypassuac 绕过UACcancel 取消正在进行的下载cd 切换目录checkin 强制让被控端回连一次clear 清除beacon内部的任务队列 ...
- 机器学习-NLP之Word embedding 原理及应用
概述 自然语言是非常复杂多变的,计算机也不认识咱们的语言,那么咱们如何让咱们的计算机学习咱们的语言呢?首先肯定得对咱们的所有文字进行编码吧,那咱们很多小伙伴肯定立马就想出了这还不简单嘛,咱们的计算机不 ...
- C++反汇编代码分析--函数调用
推荐阅读: C++反汇编代码分析–函数调用 C++反汇编代码分析–循环结构 C++反汇编代码分析–偷调函数 走进内存,走进汇编指令来看C/C++指针 代码如下: #include "stdl ...
- MySQL8.0数据库基础教程(二)-理解"关系"
1 SQL 的哲学 形如 Linux 哲学一切都是文件,在 SQL 领域也有这样一条至理名言 一切都是关系 2 关系数据库 所谓关系数据库(Relational database)是创建在关系模型基础 ...
- Ambari HDP 下 SPARK2 与 Phoenix 整合
1.环境说明 操作系统 CentOS Linux release 7.4.1708 (Core) Ambari 2.6.x HDP 2.6.3.0 Spark 2.x Phoenix 4.10.0-H ...
- 【Codeforces #312 div2 A】Lala Land and Apple Trees
# [Codeforces #312 div2 A]Lala Land and Apple Trees 首先,此题的大意是在一条坐标轴上,有\(n\)个点,每个点的权值为\(a_{i}\),第一次从原 ...
- mysql添加远程权限
mysql -u root -p grant all privileges on *.* to root@'%' identified by "password"; flush p ...
- qt creator源码全方面分析(2-10-5)
目录 The Plugin Manager, the Object Pool, and Registered Objects 插件管理器 对象池和已注册对象 The Plugin Manager, t ...
- MATLAB添加工具箱及无法连接到MathWorks问题
版本信息:官网下载的MATLAB R2019b 学生版 操作系统:Windows 10 在安装MATLAB时,需要我们自行选择要安装工具箱,如何在已安装MATLAB后添加当初没有选择安装的工具箱呢?第 ...
- webapi使用jwt做权限验证
考虑到很多公司目前并没有切换到.netcore,所有本文尝试使用.netframework下的webapi 首先使用Nuget 安装 jwt包 安装完成后,创建 jwt的帮助类 public clas ...