haloop sudo aptss update 从服务器获取配置和镜像列表... Warning: Failed to open the file /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list: 权限不够 curl: (23) client returned ERROR on write of 173 bytes 使用aptss出现上述报错,目前不影响aptss的功能,该如何解决上述报错?
haloop shenmo7192 把 aptss 里面的 update_list 函数修改了一下,已经解决了上述问题 function update_list(){ # curl --progress-bar -o /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list "${SPARK_DOWNLOAD_SERVER_URL}/sparkstore${STORE_LIST_URL}.list" curl -sSL "${SPARK_DOWNLOAD_SERVER_URL}/sparkstore${STORE_LIST_URL}.list" | tee "/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list" > /dev/null log.info "sparkstore${STORE_LIST_URL}.list update done" }
shenmo7192 haloop sudo chmod 777 /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list