Error in cpuinfo: failed to parse the list of possible processors in /sys/devices/system/cpu/possible Error in cpuinfo: failed to parse the list of present processors in /sys/devices/system/cpu/present Error in cpuinfo: failed to parse both lists of possible and present processors terminate called after throwing an instance of 'onnxruntime::OnnxRuntimeException' what(): /onnxruntime_src/include/onnxruntime/core/common/logging/logging.h:309 static const onnxruntime::logging::Logger& onnxruntime::logging::LoggingManager::DefaultLogger() Attempt to use DefaultLogger but none has been registered.
已中止
deepseek给出的回答为cpuinfo库解析处理器信息失败,而事实上文件并不存在。
所以需要伪造文件
输入 exit 并回车,然后不断选择最下面的项目,退出tmoe。
然后运行下列命令
1 2 3 4 5 6 7 8 9 10
cd .local/share/tmoe-linux/containers/proot/ubuntu-noble_arm64/sys mkdir devices cd devices mkdir system cd system mkdir cpu cd cpu echo"0-7" > possible # 0-7应填写soc的实际情况,如为8核心soc,则填写0-7,超线程情况下应填写0-实际线程数减1 echo"0-7" > present cd ~
# 下载每个URL for url in"${URLS[@]}"; do echo"`date +'%Y-%m-%d %H:%M:%S'` Downloading: $url"
# 构建输出文件参数 current_wget_args=("${WGET_ARGS[@]}") if [ -n "$OUTPUT_FILE" ]; then # 如果指定了输出文件名,只对第一个URL使用,或者为每个URL生成唯一文件名 if [ ${#URLS[@]} -eq 1 ] || [ "$url" == "${URLS[0]}" ]; then current_wget_args+=("-O""$OUTPUT_FILE") echo"`date +'%Y-%m-%d %H:%M:%S'` Output file: $OUTPUT_FILE" else # 多个URL时,为后续URL使用默认文件名 filename_from_url=$(basename"$url") current_wget_args+=("-O""$filename_from_url") echo"`date +'%Y-%m-%d %H:%M:%S'` Output file: $filename_from_url" fi fi
# 执行wget下载 if wget "${current_wget_args[@]}""$url"; then echo"`date +'%Y-%m-%d %H:%M:%S'` Download complete: $url"
# 获取下载的文件信息 if [ -n "$OUTPUT_FILE" ] && [ ${#URLS[@]} -eq 1 ]; then filename="$OUTPUT_FILE" else filename=$(basename"$url") fi
if [ -f "$DOWNLOAD_DIR/$filename" ]; then size=$(stat -c%s "$DOWNLOAD_DIR/$filename" 2>/dev/null || stat -f%z "$DOWNLOAD_DIR/$filename" 2>/dev/null) echo"`date +'%Y-%m-%d %H:%M:%S'` File: $filename, Size: $size bytes" elif [ -f "$filename" ]; then size=$(stat -c%s "$filename" 2>/dev/null || stat -f%z "$filename" 2>/dev/null) echo"`date +'%Y-%m-%d %H:%M:%S'` File: $filename, Size: $size bytes" fi else echo"`date +'%Y-%m-%d %H:%M:%S'` Download failed: $url" exit_code=1 # 不立即退出,继续尝试其他URL(如果有的话) fi done
if [ $exit_code -eq 0 ]; then echo"`date +'%Y-%m-%d %H:%M:%S'` All downloads completed successfully" else echo"`date +'%Y-%m-%d %H:%M:%S'` Some downloads failed" fi
wget https://v6.gh-proxy.com/https://github.com/MCSManager/MCSManager/releases/latest/download/mcsmanager_linux_release.tar.gz tar --strip-components=1 -xzvf mcsmanager_linux_release.tar.gz cd mcsmanager bash ./install.sh