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:

成功解决,进入网盘!

相关推荐
.Peter10 小时前
.NET/WPF 程序在部分 Windows 电脑无法保存用户环境变量:使用 DPAPI 实现安全兼容
windows·信息安全·c#·.net·wpf·环境变量·dpapi
码字的特恩11 小时前
微软确认暂不为 Windows 11 加入透明效果自定义功能,建议用户使用第三方工具
人工智能·windows·算法·microsoft·计算机·大模型·编程
神奇小梵11 小时前
安全和开发的需要了解的知识————下载内容的安全,和下载内容如何运行
android·windows·安全·个人开发
zhangfeng113312 小时前
Windows AMD显卡跑PyTorch
人工智能·pytorch·windows
楷哥爱开发12 小时前
如何在 Windows、macOS 和 Linux 上安装 scikit-learn (sklearn)
linux·windows·macos
2603_9651481112 小时前
eBay商品数据API:寻找海外仓与价格洼地
大数据·人工智能·windows·python·microsoft
江畔柳前堤21 小时前
HBM:大语言模型时代的「算力血液」——从内存墙到带宽革命的深度拆解
服务器·人工智能·windows·目标检测·语言模型·自然语言处理·软件工程
天天进步20151 天前
UI-TARS 源码解析 #22:二次开发实战:用 UI-TARS 做一个简单的 Windows 自动操作 Agent
windows·ui
啊哈一半醒1 天前
Windows 虚拟机搭建 CentOS 全过程(2026 最新版 + 踩坑解决)
linux·windows·centos
new_zhou1 天前
C++ 项目 AI 协作指南(Windows / MSVC 环境)
c++·人工智能·windows