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:

成功解决,进入网盘!

相关推荐
段一凡-华北理工大学37 分钟前
大模型应用开发 100 天:Python + LLM 从入门到精通 day26~Prompt 调试与优化——A/B 测试与效果评估
windows·python·大模型·prompt·智能体·提示词工程·高炉智能化
fox_charon2 小时前
Windows 下 CLI 参数的引号陷阱:为什么 --resume 'uuid' 会失败
windows·shell·cmd·cli·引号
染指11103 小时前
128.Agent-LangChain核心组件-中间件-调用模型的时候
人工智能·windows·中间件·langchain·agent
Frag0ut4 小时前
Chrome与Chromium内核浏览器在Windows 11上的新特性全景解析
前端·chrome·windows·web安全·chromium·gemini ai·playready drm
数安旭说5 小时前
企业终端安全实战:Windows软件管控、正版检测、变更审计与私有软件库落地
windows·企业安全·软件需求·终端安全·软件管理·正版检测·终端审计
小羊没烦恼!7 小时前
在Scrum中实施敏捷建模
java·开发语言·windows·算法·c#
玖石书7 小时前
python-uv-windows环境安装方案
windows·python·uv
程序员老陆7 小时前
WIN32_LEAN_AND_MEAN:Windows 头文件里的“精简编译开关”
c++·windows
玖石书7 小时前
LVGL的windows开发环境安装指南
windows·数字人·lvgl·仿真
qetfw8 小时前
Windows Server AD CS:根 CA、Web 证书模板与域内自动注册
前端·windows·windows-server