我正在使用我的 Raspberry Pi 2 B+,我正在使用 Raspbian。我有一个 python 脚本位于/home/pi/Desktop/control/gpio.py
当我输入/home/pi/Desktop/control/gpio.py命令行时,我收到消息
bash: /home/pi/Desktop/control/gpio.py Permission denied
Run Code Online (Sandbox Code Playgroud)
我也试过sudo -s在运行该命令之前运行,但那不起作用。我的 python 脚本正在使用该Rpi.GPIO库。
如果有人可以解释为什么我会收到此错误,我们将不胜感激!
在新的GitHub动作中,我试图安装一个软件包,以便在后续步骤之一中使用它。
name: CI
on: [push, pull_request]
jobs:
translations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Install xmllint
run: apt-get install libxml2-utils
# ...
Run Code Online (Sandbox Code Playgroud)
但是这失败了
Run apt-get install libxml2-utils
apt-get install libxml2-utils
shell: /bin/bash -e {0}
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
##[error]Process completed with exit code 100.
Run Code Online (Sandbox Code Playgroud)
最好的方法是什么?是否需要接触Docker?