iso 파일을 APT 소스로 추가하는 방법

iso 파일을 APT 소스로 추가하는 방법

내가 "/etc/fstab":

/iso/apt.iso /mnt/apt iso9660 loop 0 0

이 명령을 실행합니다루트 사용자로:

mount --all
apt-cdrom add --no-mount --cdrom /mnt/apt

디스크를 APT 소스로 추가하고 싶지만 아무 일도 일어나지 않습니다. 무엇이 빠졌나요?

고쳐 쓰다:

나는 팔로우한다이 제안이제 나는 이것을 얻습니다:

Using CD-ROM mount point /media/cdrom/
Identifying.. [61c5dd7c11a32dc999e655c235cd698e-2]
Scanning disc for index files..
Found 0 package indexes, 0 source indexes, 0 translation indexes and 0 signatures
W: Failed to mount '/dev/sr0' to '/media/cdrom/'
E: Unable to locate any package files, perhaps this is not a Debian Disc or the wrong architecture?

"가 있든 없든/etc/apt/apt.conf" 다양성.

답변1

이것은 나에게 효과적입니다.

먼저, 라인은 /etc/fstab다음과 같아야 합니다:

/iso/apt.iso /mnt/apt iso9660 user,loop 0 0

그런 다음 마운트 지점을 마운트한 후 apt-cdrom다음과 같이 실행합니다.

apt-cdrom -m -d=/mnt/apt add

apt가 여전히 디스크를 삽입하라는 메시지를 표시하면 apt.conf에 다음 줄을 추가하세요.

Acquire::cdrom::mount "/mnt/apt";
APT::CDROM::NoMount;

나는 이것이 당신에게도 효과가 있다고 생각합니다 :)

관련 정보