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:

成功解决,进入网盘!

相关推荐
Vex2une5 小时前
Docker Desktop WSL2后端:2026年性能调优与避坑实战指南
windows·docker·desktop·gpu容器·容器开发·virtiofs·buildkit
钱栈up6 小时前
搜狗中文模式打不出顿号?在 Windows 沙箱里探测输入法配置的踩坑实录
windows
白搞电子7 小时前
ZeroClaw 是什么?与 ESP-Claw 的区别及文件整理用途示例
windows·物联网
BeiGuTing_code8 小时前
Java动态数组(一)
java·数据结构·windows
我就是不信11 小时前
Java8 lambda 表达式 forEach 如何提前终止?
开发语言·windows·python
陈工大模型12 小时前
2026 Windows 免费压缩软件横向评测:7-Zip、WinRAR、Bandizip、NanaZip 与 Win 解压缩
windows·电脑·winrar·7-zip·web app·软件·win解压缩
燃烧的枫12 小时前
Windows 下 YOLO26 的 TensorRT C++ 部署
人工智能·pytorch·windows·计算机视觉·tensorrt·cuda·yolo26
钱栈up12 小时前
从 macOS 切回 Windows,我用 5 个免费工具把 80% 操作习惯搬了回来
windows·macos·策略模式
百事牛科技13 小时前
从局部到整体:Excel限制功能的几种实用设置
windows·excel
2601_9496955914 小时前
3DM游戏运行库合集安装教程,缺少DLL文件这样修复
windows·游戏·电脑