树莓派4b 对于 Failed to execute command 的解决方案

前言

因为 树莓派4b 是特例,到目前为止官方并没有提供可以直接安装在树莓派 4b 的系统镜像,而以前发布的版本对于 4b 这个新的型号也没有提供较好的支持。

所以在 更新插件 或者 更新系统 可能会出现以下问题:

Failed to execute command ‘export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; apt-get update 2>&1‘ with exit code ‘100‘:

本文就这个问题提供解决方法。

具体问题

具体错误代码,可以与你的代码比较一下:

Server.java

Failed to execute command ‘export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; apt-get update 2>&1‘ with exit code ‘100‘: Get:1 file:/var/cache/openmediavault/archives InRelease Ign:1 file:/var/cache/openmediavault/archives InRelease Get:2 file:/var/cache/openmediavault/archives Release Ign:2 file:/var/cache/openmediavault/archives Release Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Translation-en Ign:4 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Translation-en Ign:4 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Translation-en Ign:4 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Translation-en Ign:4 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Translation-en Ign:4 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Translation-en Ign:4 file:/var/cache/openmediavault/archives Translation-en Get:3 file:/var/cache/openmediavault/archives Packages [1069 B] Get:4 file:/var/cache/openmediavault/archives Translation-en Ign:4 file:/var/cache/openmediavault/archives Translation-en Get:5 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster InRelease [15.0 kB] Hit:6 http://mirrors.tuna.tsinghua.edu.cn/raspberrypi buster InRelease Get:7 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main Sources [11.4 MB] Err:7 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian buster/main Sources File has unexpected size (11350904 != 11350828). Mirror sync in progress? [IP: 183.222.102.76 80] Hashes of expected file: - Filesize:11350828 [weak] - SHA256:2080fdd5bfa43842d350f338f920c1bc537aa7f40a9095504772a7241ba52753 - SHA1:b6a1b284c7512b8ad0eea2618b2058bfcae1cb8b [weak] - MD5Sum:32b82c8547daaff00d223c8cb462acea [weak] Release file created at: Fri, 27 Mar 2020 22:51:18 +0000 Ign:9 https://dl.bintray.com/openmediavault-plugin-developers/usul buster InRelease Hit:10 https://download.docker.com/linux/debian buster InRelease Get:11 https://dl.bintray.com/openmediavault-plugin-developers/usul buster Release [4363 B] Hit:13 http://packages.openmediavault.org/public usul InRelease Fetched 4363 B in 13s (327 B/s) Reading package lists... E: Failed to fetch http://183.222.102.76/cache/mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/dists/buster/main/source/Sources.xz?ich_args2=392-28124503039578_574e8b1e35a7d749e734ef3666544963_10001002_9c896c29d4c4f1d6953a518939a83798_4a770034bf2db31bc5e0861b958e4fa3 File has unexpected size (11350904 != 11350828). Mirror sync in progress? [IP: 183.222.102.76 80] Hashes of expected file: - Filesize:11350828 [weak] - SHA256:2080fdd5bfa43842d350f338f920c1bc537aa7f40a9095504772a7241ba52753 - SHA1:b6a1b284c7512b8ad0eea2618b2058bfcae1cb8b [weak] - MD5Sum:32b82c8547daaff00d223c8cb462acea [weak] Release file created at: Fri, 27 Mar 2020 22:51:18 +0000 E: Failed to fetch http://183.222.102.65/cache/mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/dists/buster/main/binary-armhf/Packages.xz?ich_args2=392-28124513039608_af3257cb9619ae1550a259fa412a8924_10001002_9c896c29d4c4f1d6953a518939a83798_60c5e3374eaa05658ba5bf091e3e49ad E: Some index files failed to download. They have been ignored, or old ones used instead.
  

解决方法

现在找到的方法就是更新内核。

sudo apt-get install --reinstall raspberrypi-bootloader raspberrypi-kernel

更新内核后,就可以 更新插件 或者 更新系统 。但是这种方法并不是一劳永逸的,下次依然可能会出现相同的问题,就要再次更新内核。

原文地址:https://www.cnblogs.com/Yogile/p/12584724.html

时间: 2024-11-05 17:21:12

树莓派4b 对于 Failed to execute command 的解决方案的相关文章

xhprof failed to execute cmd: " dot -Tpng". stderr: `sh: dot: command not found '

安装graphviz 地址:http://www.graphviz.org/pub/graphviz/ARCHIVE/ 下载安装 1 2 3 4 5 6 7 wget http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-2.28.0.tar.gz tar xzvf graphviz-2.28.0.tar.gz ./configure --prefix=/home/mahao01/local/graphviz-2.28.0 make &&

app打包时报错unable to execute command: Segmentation fault: 11

问题:打包时报错   clang: error:unable to execute command: Segmentation fault: 11 clang: error:linker command failed due to signal (use -v to see invocation) app在上架的时候遇到这个报错问题,一开始以为是证书或者是配置描述文件哪里出错了.作为新手,在试了好多方法依然无法解决之后,只能无奈按照app上架流程又完完全全的重新过了一遍,在点击Archive后的

iOS 开发报错 clang: error: unable to execute command: Segmentation fault: 11

ios开发报错 ld: can't link with a main executable file '/Users/apple/Library/Developer/Xcode/DerivedData/LePaiDemo-ftsuwgzvjdjwzghgkuefbzvdkvey/Build/Products/Debug-iphoneos/LePaiDemo.app/LePaiDemo' for architecture armv7 clang: error: unable to execute

Could not execute command ‘sassc‘

win10 安装odoo12报错:"Could not execute command 'sassc'This error occured while compiling the bundle 'web.assets_common' containing:"问题日志报错:Style errorThe style compilation failed, see the error below. Your recent actions may be the cause, please tr

树莓派4B 串口通信

提前下载安装Glade图形编辑器 参考 树莓派4B安装netcore 环境部署.发布.执行操作 准备串口设备本文使用串口控制继电器设备 如图 1.发现串口 void GetSerialPort() { Console.WriteLine("发现串口:"); var names = SerialPort.GetPortNames(); int count = 1; foreach (var item in names) { ports.Add(count.ToString(), item

教你树莓派4B的系统备份方法教程大全(全卡+压缩备份)

引用:https://www.hao4k.cn/thread-41764-1-1.html 在 Windows 上用 VMware 安装 Linux 虚拟机有个「快照」的功能,就是把你当前的系统做个备份,一旦后来误操作把系统搞挂了之后可以恢复到备份的那个时间节点.Linux 系统开放的权限比较高,以 root 权限操作的话很有可能就会误删一些系统文件导致系统崩溃.我就曾把树莓派的系统搞挂过好几次,每次只能重新刷入镜像,开机后还得重复一大堆操作,所以备份树莓派的系统就很重要了.还可以把已经部署好的

Maven Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean Failed to delete access_log

I'm trying to run simple struts project using maven and tomcat. When I'm trying to exucute next goals:clean install tomcat7:run ,there is an error : [ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean)

fetch 报错 Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body.

TypeError: Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body. 在"窗口"上执行"取"失败:GET / get方法的请求不能有正文. GET requests can't have a request body, you can't make them have one. GET requests only retrieve data,

STM32初学Keil4编译时出现 Error:Failed to execute 'BIN40/Armcc'

一种是在系统开始--运行里输入cmd,查看armcc状态.详情见推文: http://blog.csdn.net/hicui/article/details/7350805(笔记记录,请勿见怪) 都没有问题的话,那么可以尝试: 在keil里的菜单栏依次选择Project->Manage->Components,Environment andBooks(CEB)(或者直接点击工具栏的图标), 然后在CEB里选择Folders/Extensions标签页,在RealView Folder里选择ke