通过 USB C 将 Google 的 Pixel 6a 插入 Ubuntu 22.04 后:
$ lsusb
Bus 005 Device 002: ID 18d1:4ee1 Google Inc. Nexus/Pixel Device (MTP)
Nautilus 的左侧菜单中还出现了一个名为的分区Pixel 6a
。但是,单击该分区一段时间后会出现以下错误消息:
我如何访问这部手机的文件夹?它使用 Andriod 13 作为操作系统。
我遇到了类似的Pixel 4
关于 Ubuntu 20.04.2 的问题并尝试了其接受的答案,但没有效果。
$ sudo mkdir -pv /media/Pixel6a
mkdir: created directory '/media/Pixel6a'
$ sudo chown $USER:$USER /media/Pixel6a/ -vv
changed ownership of '/media/Pixel6a/' from root:root to me:me
$ ls -la /media/
total 16
drwxr-xr-x 4 root root 4096 Nov 17 07:21 .
drwxr-xr-x 20 root root 4096 Oct 24 13:04 ..
drwxr-x---+ 4 root root 4096 Nov 17 06:56 me
drwxr-xr-x 2 master master 4096 Nov 17 07:21 Pixel6a
$ sudo apt install jmtpfs
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
jmtpfs is already the newest version (0.5-3).
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
$ jmtpfs /media/Pixel6a/
Device 0 (VID=18d1 and PID=4ee1) is a Google Inc Nexus/Pixel (MTP).
PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
LIBMTP PANIC: failed to open session on second attempt
terminate called after throwing an instance of 'MtpErrorCantOpenDevice'
what(): Can't open device
Aborted (core dumped)
在 Nautilus 上,也会看到相同的错误消息(如上所示)。
答案1
感谢@Terrance、@Nmath 以及这个Youtube 视频,我了解到我必须启用 Andriod 手机功能才能解决我的问题。
我对着手机说“ Hey Google, USB Preference
”。随后,屏幕出现,我选择File Transfer / Android Auto
,Nautilus 立即访问了 Pixel 6a 设备。