debian@iZj6cctjpq1994jyxsr2kaZ:~/ytb$ yt-dlp 'https://www.youtube.com/watch?v=nWmuy5Ne4rU'
[youtube] Extracting URL: https://www.youtube.com/watch?v=nWmuy5Ne4rU
[youtube] nWmuy5Ne4rU: Downloading webpage
[youtube] nWmuy5Ne4rU: Downloading ios player API JSON
[youtube] nWmuy5Ne4rU: Downloading mweb player API JSON
[youtube] nWmuy5Ne4rU: Downloading m3u8 information
[info] nWmuy5Ne4rU: Downloading 1 format(s): 135+251
[download] Destination: 02 立方和公式及立方差公式 先修課 高中數學 [nWmuy5Ne4rU].f135.mp4
[download] 100% of 6.33MiB in 00:00:00 at 7.00MiB/s
[download] Destination: 02 立方和公式及立方差公式 先修課 高中數學 [nWmuy5Ne4rU].f251.webm
[download] 100% of 2.53MiB in 00:00:00 at 3.47MiB/s
[Merger] Merging formats into "02 立方和公式及立方差公式 先修課 高中數學 [nWmuy5Ne4rU].mkv"
debian@iZj6cctjpq1994jyxsr2kaZ:~/ytb$ ls
'02 '$'\347\253\213\346\226\271\345\222\214\345\205\254\345\274\217\345\217\212\347\253\213\346\226\271\345\267\256\345\205\254\345\274\217'' '$'\345\205\210\344\277\256\350\252\262'' '$'\351\253\230\344\270\255\346\225\270\345\255\270'' [nWmuy5Ne4rU].mkv'
1.txt
测试建一个文件,在里面输入中文,是可以正常显示
debian@iZj6cctjpq1994jyxsr2kaZ:~$ cat 1.txt
测试
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=C.UTF-8
LANGUAGE=
LC_CTYPE=UTF-8
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_PAPER="C.UTF-8"
LC_NAME="C.UTF-8"
LC_ADDRESS="C.UTF-8"
LC_TELEPHONE="C.UTF-8"
LC_MEASUREMENT="C.UTF-8"
LC_IDENTIFICATION="C.UTF-8"
LC_ALL=
1
sagaxu 2 天前
yt-dlp -v '' 看看诊断信息
|
2
busier 2 天前 via iPhone
locale 正常不是应该设 zh-CN.UTF-8
|
3
ooxxcc 2 天前
|
4
Soffio 2 天前
目测是 mac ssh 传了错误的环境变量,注释掉 `/etc/ssh/ssh_config` 下的 `SendEnv LANG LC_*`
|
5
kevinyuandlp OP @Soffio 还真是,在/etc/ssh/ssh_config 文件没有发现,但是在/etc/ssh/ssh_config.d/文件夹里有 100-macos.conf 文件
keviny@Mac:ssh_config.d % cat 100-macos.conf Host * SendEnv LANG LC_* Include /etc/ssh/crypto.conf 注释掉 SendEnv LANG LC_*,再登入 Debian ,文件名正常显示 |