我有一台双启动笔记本电脑 - Ubuntu 20.04 和 Windows 10,两者都位于相同的硬盘上,不同的分区,还有第三个,旨在通用。
为了避免将我的 Dropbox 文件夹放在每个操作系统上,我希望将其安装在第三个分区上。我虽然“FAT32”适合这项工作,但是当我在 Windows 端安装 Dropbox 时,它要求“NTFS”(因此它从“FAT32”更改为“NTFS”),当我切换到 Ubuntu 时,Dropbox 要求对于“Ext4”。
这种情况能解决吗?
我正在使用 17.04(全新安装),据我所知,每次尝试安装任何软件都失败并显示错误代码。
我试过了sudo apt-get update && apt-get upgrade,问题仍然存在。
编辑:更新的输出
guy@LG-LAPTOP:~$ sudo apt-get update && apt-get upgrade
[sudo] password for guy:
Ign:1 http://il.archive.ubuntu.com/ubuntu zesty InRelease
Ign:2 http://il.archive.ubuntu.com/ubuntu zesty-updates InRelease
Ign:3 http://il.archive.ubuntu.com/ubuntu zesty-backports InRelease
Err:4 http://il.archive.ubuntu.com/ubuntu zesty Release
503 Service Unavailable
Get:5 http://security.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB]
Err:6 http://il.archive.ubuntu.com/ubuntu zesty-updates Release
503 Service Unavailable
Get:7 http://archive.canonical.com/ubuntu zesty InRelease [10.2 kB]
Err:8 http://il.archive.ubuntu.com/ubuntu zesty-backports Release
503 Service Unavailable
Get:9 http://archive.canonical.com/ubuntu zesty/partner Sources [1,416 B]
Get:10 http://archive.canonical.com/ubuntu zesty/partner amd64 Packages …Run Code Online (Sandbox Code Playgroud) 全新安装 Ubuntu 后,我尝试使用 Arduino IDE v1.8.16 上传草图(使用.deb从网络下载的文件安装)。
An error occurred while uploading the sketch avrdude: ser_open(): can't open device "/dev/ttyACM0": Device or resource busy
在新的 Linux 机器上首次安装 Arduino IDE 后,需要成为 : 的成员,sudo usermod -a -G dialout $USER并注销、登录,这并没有按预期改变。
所以我尝试chmod连接端口/dev/ttyUSB0,这并没有改变错误消息(顺便说一句,在 USB1 和 ACM0 上我也得到了相同的输出 - 当尝试上传到时Nano)。
现在我得到这个错误:
esptool.py v3.0
Serial port /dev/ttyUSB0
Connecting........_____....._____....._____....._____....._____....._____....._____
Traceback (most recent call last):
File "/home/guy/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/upload.py", line 66, in <module>
esptool.main(cmdline)
File "/home/guy/.arduino15/packages/esp8266/hardware/esp8266/3.0.2/tools/esptool/esptool.py", line 3552, in main
esp.connect(args.before, …Run Code Online (Sandbox Code Playgroud) 我试图/在某个路径中grep计数,但是当它在 1 行中时将所有实例计为 1。
/home/usr/bin/test | grep / -c
Run Code Online (Sandbox Code Playgroud)
给出了答案1。
我正在尝试构建一个脚本以允许用户从现有的可用网络中进行选择,使用:
nmcli device wifi
Run Code Online (Sandbox Code Playgroud)
显示 2 个网络(作为当前位置的示例):
如何提取可用网络的唯一名称 (SSID)?
command-line ×2
17.04 ×1
arduino ×1
dropbox ×1
ext4 ×1
grep ×1
ntfs ×1
partitioning ×1
scripts ×1
serial-port ×1