# oma报错，求助

**URL:** <https://bbs.aosc.io/t/topic/577>\
**Category:** 设备支持\
**Created:** [2025 年9 月 10 日 10:57 UTC](https://bbs.aosc.io/t/topic/577 "2025-09-10T10:57:46Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![BDxin](https://bbs.aosc.io/letter_avatar_proxy/v4/letter/b/3be4f8/32.png) [@BDxin](https://bbs.aosc.io/u/BDxin)\
**Post date:** [2025 年9 月 10 日 10:57 UTC](https://bbs.aosc.io/t/topic/577/1 "2025-09-10T10:57:46Z")

</div>

$ oma  
INFO 请在弹出的密码框输入密码以授权 oma 执行系统管理操作。  
INFO 如果您无法操作该输入框，请按 Ctrl + C 退出并以管理员权限运行 oma。  
INFO 正在刷新本机软件包数据库 …  
ERROR 无法刷新本地软件包数据库。  
DUE TO packagekitd (2001) 正占用数据库锁。

---

<div class="post-metadata">

**Author:** ![白铭骢](https://bbs.aosc.io/user_avatar/bbs.aosc.io/%E7%99%BD%E9%93%AD%E9%AA%A2/32/12_2.png) [@白铭骢](https://bbs.aosc.io/u/%E7%99%BD%E9%93%AD%E9%AA%A2)\
**Post date:** [2025 年9 月 10 日 11:01 UTC](https://bbs.aosc.io/t/topic/577/2 "2025-09-10T11:01:40Z")

</div>

这个其实是桌面上的更新检查工具正在刷新软件源数据，如果卡住非常久，可以运行如下命令后重试 oma 操作：

```auto
systemctl stop packagekit

```

我们尚未确定如何优化这块的体验

---

<div class="post-metadata">

**Author:** ![BDxin](https://bbs.aosc.io/letter_avatar_proxy/v4/letter/b/3be4f8/32.png) [@BDxin](https://bbs.aosc.io/u/BDxin)\
**Post date:** [2025 年9 月 10 日 11:07 UTC](https://bbs.aosc.io/t/topic/577/3 "2025-09-10T11:07:25Z")

</div>

嗯，发现了。然后发现更新好像也出错了。dpkg was interrupted, you must manually run ‘dpkg --configure -a’ to correct the problem.

---

<div class="post-metadata">

**Author:** ![BDxin](https://bbs.aosc.io/letter_avatar_proxy/v4/letter/b/3be4f8/32.png) [@BDxin](https://bbs.aosc.io/u/BDxin)\
**Post date:** [2025 年9 月 10 日 11:12 UTC](https://bbs.aosc.io/t/topic/577/4 "2025-09-10T11:12:39Z")

</div>

更新错误  
[Index of /debs/](https://repo.aosc.io/debs) stable InRelease is not (yet) available (Cannot initiate the connection to [repo.aosc.io:443](http://repo.aosc.io:443) (2406:4440::a05c:a05c:a05c:a05c). - connect (101: Network is unreachable))

---

<div class="post-metadata">

**Author:** ![白铭骢](https://bbs.aosc.io/user_avatar/bbs.aosc.io/%E7%99%BD%E9%93%AD%E9%AA%A2/32/12_2.png) [@白铭骢](https://bbs.aosc.io/u/%E7%99%BD%E9%93%AD%E9%AA%A2)\
**Post date:** [2025 年9 月 10 日 11:29 UTC](https://bbs.aosc.io/t/topic/577/5 "2025-09-10T11:29:07Z")

</div>

可否提供下如下命令的输出？

```auto
curl https://repo.aosc.io/.returnip

```

但看起来可能无法提供（像是 IPv6 网络有问题）

---

<div class="post-metadata">

**Author:** ![BDxin](https://bbs.aosc.io/letter_avatar_proxy/v4/letter/b/3be4f8/32.png) [@BDxin](https://bbs.aosc.io/u/BDxin)\
**Post date:** [2025 年9 月 10 日 11:47 UTC](https://bbs.aosc.io/t/topic/577/6 "2025-09-10T11:47:33Z")

</div>

curl [https://repo.aosc.io/.returnip](https://repo.aosc.io/.returnip)  
ip=120.219.128.133  
region=CN\_CENTR  
archive\_dst=[mirrors.cernet.edu.cn](http://mirrors.cernet.edu.cn)

---

<div class="post-metadata">

**Author:** ![BDxin](https://bbs.aosc.io/letter_avatar_proxy/v4/letter/b/3be4f8/32.png) [@BDxin](https://bbs.aosc.io/u/BDxin)\
**Post date:** [2025 年9 月 10 日 11:48 UTC](https://bbs.aosc.io/t/topic/577/7 "2025-09-10T11:48:48Z")

</div>

更新错误  
E: dpkg was interrupted, you must manually run ‘dpkg --configure -a’ to correct the problem.

---

<div class="post-metadata">

**Author:** ![BDxin](https://bbs.aosc.io/letter_avatar_proxy/v4/letter/b/3be4f8/32.png) [@BDxin](https://bbs.aosc.io/u/BDxin)\
**Post date:** [2025 年9 月 10 日 11:49 UTC](https://bbs.aosc.io/t/topic/577/8 "2025-09-10T11:49:27Z")

</div>

一次不能发两个链接，最下面一个没有粘贴

---

<div class="post-metadata">

**Author:** ![白铭骢](https://bbs.aosc.io/user_avatar/bbs.aosc.io/%E7%99%BD%E9%93%AD%E9%AA%A2/32/12_2.png) [@白铭骢](https://bbs.aosc.io/u/%E7%99%BD%E9%93%AD%E9%AA%A2)\
**Post date:** [2025 年9 月 25 日 16:08 UTC](https://bbs.aosc.io/t/topic/577/9 "2025-09-25T16:08:47Z")

</div>

运行一下：

```auto
oma upgrade --no-fix-dpkg-status

```
