将文件夹添加到 apt 缓存后,apt 更新不起作用

将文件夹添加到 apt 缓存后,apt 更新不起作用

Ubuntu 版本:ubuntu-22.04.2-live-server-amd64

你好,我正在尝试设置并安装 ubuntu ibm mq 服务器,并遵循以下设置指南: IBM mq ubuntu 安装指南 https://developer.ibm.com/tutorials/mq-connect-app-queue-manager-ubuntu/

我设法按照步骤 3 进行操作,我提取了 tar 文件,并且在 /home/alex/ 中有一个 MQServer 文件夹,其中包含所有 .ded 文件,但是我创建了 .list 文件,并将以下内容放入 /etc/apt/sources.list.d 中

deb [trusted=yes] 文件:/home/alex/MQServer ./

并运行 sudo apt update,我遇到了以下错误,我不知道为什么

Get:4 file:/home/alex/MQServer ./ Translation-en_US
Ign:4 file:/home/alex/MQServer ./ Translation-en_US
Get:3 file:/home/alex/MQServer ./ Packages
Ign:3 file:/home/alex/MQServer ./ Packages
Get:5 file:/home/alex/MQServer ./ Translation-en
Ign:5 file:/home/alex/MQServer ./ Translation-en
Get:3 file:/home/alex/MQServer ./ Packages
Err:3 file:/home/alex/MQServer ./ Packages
  File not found - /home/alex/MQServer/./Packages (2: No such file or directory)
Hit:6 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:7 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [751 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [134 kB]
Fetched 1,222 kB in 3s (356 kB/s)
Reading package lists... Done
N: Download is performed unsandboxed as root as file '/home/alex/MQServer/./InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Failed to fetch file:/home/alex/MQServer/./Packages  File not found - /home/alex/MQServer/./Packages (2: No such file or directory)
E: Some index files failed to download. They have been ignored, or old ones used instead.

相关内容