WebDAV如何使用?

✅ 方案一:把 apt 源换成国内镜像(最稳)

你现在是 Ubuntu noble (24.04)

noble/universe

直接换清华源。

1️⃣ 备份原 sources.list

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

2️⃣ 编辑源

sudo nano /etc/apt/sources.list

全部删掉,粘贴下面这份(noble 专用):

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-security main restricted universe multiverse

保存退出。

3️⃣ 更新并安装

sudo apt update sudo apt install davfs2

👉 这一步 99% 会直接成功


三、如果你想"顺便把 DNS 也修干净"(可选但推荐)

你现在这个报错本质是 DNS 解析失败,可以顺手确认一下:

如果在 WSL 里,最稳的做法是:

sudo nano /etc/resolv.conf

改成:

nameserver 8.8.8.8

nameserver 1.1.1.1

然后(如果是 WSL)防止被覆盖:

sudo chattr +i /etc/resolv.conf


四、安装好 davfs2 之后,接下来只需要这 3 条命令

sudo mkdir -p /mnt/bitahub sudo mount -t davfs \ https://www.bitahub.com/mount/a17717576847060992248441 \ /mnt/bitahub ls /mnt/bitahub

看到:

TAG-Code TAG-Data

成功

问题:mounting failed; the server does not support WebDAV

(base) jie@jie:/mnt/f/desktop$ sudo mount -t davfs https://www.bitahub.com/mount/a17717576847060992248441 /mnt/bitahub

Please enter the username to authenticate with server

https://www.bitahub.com/mount/a17717576847060992248441 or hit enter for none.

Username: Arcment

Please enter the password to authenticate user Arcment with server

https://www.bitahub.com/mount/a17717576847060992248441 or hit enter for none.

Password:

成功解决,进入网盘!

相关推荐
love530love2 小时前
【ComfyUI】解决 ModuleNotFoundError: No module named ‘inference_core_nodes‘ 问题
人工智能·windows·python·comfyui·inference-core
Bruce_Liuxiaowei4 小时前
Windows系统安全加固——从基础到进阶的实战配置
windows·安全·系统安全
RZcKUXIhvPR6 小时前
基于VSG控制(虚拟同步发电机控制)的模块化多电平变流器MM C 通过设置可编程电源,模拟电网...
windows
电饭叔8 小时前
python转换字符串介绍
开发语言·windows·python
winfield82110 小时前
Win11系统,如何让Sublime直接显示在右键点击中?
windows·编辑器·sublime text
winfield82110 小时前
Windows 的 cmd 里如何定义 alias?
windows
小恰学逆向11 小时前
【实用工具趣谈】美化你的终端——你的终端也可以如此炫酷
windows
ITHAOGE1511 小时前
下载 | Win10正式版最新系统ISO映像 (22H2、19045.6937、多合一版本)-修复系统问题
windows·科技·microsoft·微软·电脑
yaoxin52112314 小时前
330. Java Stream API - 处理 Optional 对象:像流一样优雅地使用 Optional
java·windows·python
Mr.洛 白15 小时前
Windows 开发环境多版本管理工具安装
windows·开发环境·mise