- Как использовать образ.iso в качестве репозитория CD-ROM?
- 10 ответов
- Операционные системы Astra Linux
- apt-cdrom (8) — Linux Man Pages
- apt-cdrom: APT CD-ROM management utility
- SYNOPSIS
- DESCRIPTION
- OPTIONS
- DIAGNOSTICS
- Taufan Lubis – Ubuntu Linux
- Be free…. be yourself with Linux.
- Using apt-cdrom when update Ubuntu through DVD repositories
- Ubuntu Documentation
- Source.list
- Apt-cdrom
- Description and options
Как использовать образ.iso в качестве репозитория CD-ROM?
У меня есть все образы Debian, Ubuntu и Ubuntustudio как .iso , Как я могу использовать их в качестве хранилища для установки желаемых пакетов с sudo apt-get install package-name ?
Я легко монтирую .iso файл с Archive Mounter, но при добавлении CD-ROM в Источники программного обеспечения он говорит, пожалуйста, Вставьте CD-ROM.
Как это сделать, не записав их на диск?
10 ответов
На этот вопрос уже дан ответ как часть ответа на другой вопрос: Как сделать USB-накопитель локальным хранилищем
Самый простой способ добавить изображение в качестве программного источника — это записать его на CD/DVD. Затем вам нужно перейти в Система -> Администрирование -> Источники программного обеспечения, нажать «Другое программное обеспечение» и нажать «Добавить CD-ROM. «.
Если вы хотите использовать образ ISO в качестве программного источника, не записывая его, процесс будет немного сложнее. Вам нужно будет открыть терминал Приложения -> Аксессуары -> Терминал и запустить эти команды:
sudo mkdir /aptoncd-mountpoint
sudo mount /media/USB/aptoncd.iso
sudo apt-cdrom -d=/aptoncd-mountpoint add
затем добавьте deb file:///media/mountpoint distro main contrib в /etc/sources.list с текстовым редактором, а не с каким-либо инструментом графического интерфейса, а затем обновить из диспетчера пакетов.
Вышеуказанные шаги не сработали для меня. В любом случае мне довелось разобраться с помощью списка пользователей Debian, и это сработало.
Предположим, у вас есть файл iso в папке /home/iso-files/. У меня был файл debian-7.1.0-amd64-DVD-1.iso в папке / home / iso-files
Создайте новую папку в / media
вам нужно будет запустить вышеуказанную команду от имени пользователя root
Запустите следующую команду как root
Добавьте запись в / etc / fstab следующим образом
Сделайте запись в вашем /etc/apt/sources.list следующим образом
Закомментируйте все остальное в /etc/apt/sources.list, добавив # в начале каждой записи. только вышеприведенная строка должна быть без комментариев.
Запустите следующую команду как root
Установите любое имя пакета, и теперь оно должно работать.
Вы можете проверить правильность вашей записи в fstab, отмонтировав dvd, а затем непосредственно установив точку монтирования
Если вы планируете автоматически монтировать DVD при запуске, вы должны удалить user,noauto из записи в / etc / fstab
Вышеуказанные шаги работают просто идеально для меня. Это должно работать и для вас! Я знаю, что довольно поздно, чтобы ответить вам, но в любом случае!
Источник
Операционные системы Astra Linux
Оперативные обновления и методические указания
Операционные системы Astra Linux предназначены для применения в составе информационных (автоматизированных) систем в целях обработки и защиты 1) информации любой категории доступа 2) : общедоступной информации, а также информации, доступ к которой ограничен федеральными законами (информации ограниченного доступа).
1) от несанкционированного доступа;
2) в соответствии с Федеральным законом от 27.07.2006 № 149-ФЗ «Об информации, информационных технологиях и о защите информации» (статья 5, пункт 2).
Операционные системы Astra Linux Common Edition и Astra Linux Special Edition разработаны коллективом открытого акционерного общества «Научно-производственное объединение Русские базовые информационные технологии» и основаны на свободном программном обеспечении. С 17 декабря 2019 года правообладателем, разработчиком и производителем операционной системы специального назначения «Astra Linux Special Edition» является ООО «РусБИТех-Астра».
На web-сайтах https://astralinux.ru/ и https://wiki.astralinux.ru представлена подробная информация о разработанных операционных системах семейства Astra Linux, а также техническая документация для пользователей операционных систем и разработчиков программного обеспечения.
Мы будем признательны Вам за вопросы и предложения, которые позволят совершенствовать наши изделия в Ваших интересах и адаптировать их под решаемые Вами задачи!
Репозитория открытого доступа в сети Интернет для операционной системы Astra Linux Special Edition нет. Операционная система распространяется посредством DVD-дисков.
Информацию о сетевых репозиториях операционной системы Astra Linux Common Edition Вы можете получить в статье Подключение репозиториев с пакетами в ОС Astra Linux и установка пакетов.
В целях обеспечения соответствия сертифицированных операционных систем Astra Linux Special Edition требованиям, предъявляемым к безопасности информации, ООО «РусБИтех-Астра» осуществляет выпуск очередных и оперативных обновлений.
Очередные обновления (версии) предназначены для:
- реализации и совершенствования функциональных возможностей;
- поддержки современного оборудования;
- обеспечения соответствия актуальным требованиям безопасности информации;
- повышения удобства использования, управления компонентами и другие.
Оперативные обновления предназначены для оперативного устранения уязвимостей в экземплярах, находящихся в эксплуатации, и представляют собой бюллетень безопасности, который доступен в виде:
- инструкций и методических указаний по настройке и особенностям эксплуатации ОС, содержащих сведения о компенсирующих мерах или ограничениях по примене- нию ОС при эксплуатации;
- отдельных программных компонентов из состава ОС, в которые внесены изменения с целью устранения уязвимостей, инструкций по их установке и настройке, а также информации, содержащей сведения о контрольных суммах всех файлов оперативного обновления;
- обновлений безопасности, представляющих собой файл с совокупностью программных компонентов из состава ОС, в которые внесены изменения с целью устранения уязвимостей, а также информации, содержащей сведения о контрольных суммах всех файлов обновлений безопасности, указания по установке, настройке и особенностям эксплуатации ОС с установленными обновлениями безопасности.
Ввиду совершенствования нормативно-правовых документов в области защиты информации и в целях обеспечения соответствия информационных актуальным требованиям безопасности информации, а также обеспечения их долговременной эксплуатации, в том числе работоспособности на современных средствах вычислительной техники, рекомендуется на регулярной основе планировать проведение мероприятий по применению очередных и оперативных обновлений операционной системы.
Источник
apt-cdrom (8) — Linux Man Pages
apt-cdrom: APT CD-ROM management utility
Command to display apt-cdrom manual in Linux: $ man 8 apt-cdrom
apt-cdrom — APT CD-ROM management utility
SYNOPSIS
DESCRIPTION
apt-cdrom is used to add a new CD-ROM to APT’s list of available sources. apt-cdrom takes care of determining the structure of the disc as well as correcting for several possible mis-burns and verifying the index files.
It is necessary to use apt-cdrom to add CDs to the APT system; it cannot be done by hand. Furthermore each disc in a multi-CD set must be inserted and scanned separately to account for possible mis-burns.
Unless the -h , or —help option is given, one of the commands below must be present.
add add is used to add a new disc to the source list. It will unmount the CD-ROM device, prompt for a disc to be inserted and then proceed to scan it and copy the index files. If the disc does not have a proper .disk directory you will be prompted for a descriptive title.
APT uses a CD-ROM ID to track which disc is currently in the drive and maintains a database of these IDs in /var/lib/apt/cdroms.list
ident A debugging tool to report the identity of the current disc as well as the stored file name
OPTIONS
All command line options may be set using the configuration file, the descriptions indicate the configuration option to set. For boolean options you can override the config file by using something like -f- , —no-f , -f=no or several other variations.
—no-auto-detect , —cdrom Do not try to auto-detect the CD-ROM path. Usually combined with the —cdrom option. Configuration Item: Acquire::cdrom::AutoDetect.
-d , —cdrom Mount point; specify the location to mount the CD-ROM. This mount point must be listed in /etc/fstab and properly configured. Configuration Item: Acquire::cdrom::mount.
-r , —rename Rename a disc; change the label of a disc or override the disc’s given label. This option will cause apt-cdrom to prompt for a new label. Configuration Item: APT::CDROM::Rename.
-m , —no-mount No mounting; prevent apt-cdrom from mounting and unmounting the mount point. Configuration Item: APT::CDROM::NoMount.
-f , —fast Fast Copy; Assume the package files are valid and do not check every package. This option should be used only if apt-cdrom has been run on this disc before and did not detect any errors. Configuration Item: APT::CDROM::Fast.
-a , —thorough Thorough Package Scan; This option may be needed with some old Debian 1.1/1.2 discs that have Package files in strange places. It takes much longer to scan the CD but will pick them all up.
-n , —just-print , —recon , —no-act No Changes; Do not change the sources.list (5) file and do not write index files. Everything is still checked however. Configuration Item: APT::CDROM::NoAct.
-h , —help Show a short usage summary.
-v , —version Show the program version.
-c , —config-file Configuration File; Specify a configuration file to use. The program will read the default configuration file and then this configuration file. If configuration settings need to be set before the default configuration files are parsed specify a file with the APT_CONFIG environment variable. See apt.conf (5) for syntax information.
-o , —option Set a Configuration Option; This will set an arbitrary configuration option. The syntax is -o Foo::Bar=bar . -o and —option can be used multiple times to set different options.
DIAGNOSTICS
apt-cdrom returns zero on normal operation, decimal 100 on error.
Источник
Taufan Lubis – Ubuntu Linux
Be free…. be yourself with Linux.
Using apt-cdrom when update Ubuntu through DVD repositories
February 11, 2008 by taufanlubis
Ubuntu Gutsy comes with 1 live CD + 5 DVD repositories. You can update your system through the internet or do it locally with the DVD repositories.
$ sudo apt-get update
Ign cdrom://Ubuntu 7.10 _Gutsy Gibbon_ – Release i386 (20071016) gutsy Release.gpg
Ign file: repo_gutsy/ Release.gpg
Ign cdrom://Ubuntu 7.10 _Gutsy Gibbon_ – Release i386 (20071016) gutsy/main Translation-en_US
Ign file: repo_gutsy/ Translation-en_US
Ign file: repo_gutsy/ Release
Ign cdrom://Ubuntu 7.10 _Gutsy Gibbon_ – Release i386 (20071016) gutsy/restricted Translation-en_US
Ign cdrom://Ubuntu 7.10 _Gutsy Gibbon_ – Release i386 (20071016) gutsy Release
Ign file: repo_gutsy/ Packages
Ign cdrom://Ubuntu 7.10 _Gutsy Gibbon_ – Release i386 (20071016) gutsy/main Packages
Ign cdrom://Ubuntu 7.10 _Gutsy Gibbon_ – Release i386 (20071016) gutsy/restricted Packages
Err cdrom://Ubuntu 7.10 _Gutsy Gibbon_ – Release i386 (20071016) gutsy/main Packages
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err cdrom://Ubuntu 7.10 _Gutsy Gibbon_ – Release i386 (20071016) gutsy/restricted Packages
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Failed to fetch cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ – Release i386 (20071016)]/dists/gutsy/main/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Failed to fetch cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ – Release i386 (20071016)]/dists/gutsy/restricted/binary-i386/Packages.gz Please use apt-cdrom to make this CD-ROM recognized by APT . apt-get update cannot be used to add new CD-ROMs
Reading package lists… Done
E: Some index files failed to download, they have been ignored, or old ones used instead.
If you want to use the DVD, you have to include it in Ubuntu Software Sources (System > Administration > Software Sources > Third party software > Add CD-ROM)
$ sudo apt-cdrom add
Using CD-ROM mount point /cdrom/
Waiting for disc…
Please insert a Disc in the drive and press enter
Scanning disc for index files..
Found 1 package indexes, 0 source indexes, 0 translation indexes and 0 signatures
Please provide a name for this Disc, such as ‘Debian 2.1r1 Disk 1’:
This disc is called:
Reading Package Indexes… Done
Writing new source list
Source list entries for this disc are:
deb cdrom:[disk_repo1]/ gutsy main
Repeat this process for the rest of the CDs in your set.
$ sudo apt-get update
Ign file: repo_gutsy/ Release.gpg
Ign file: repo_gutsy/ Translation-en_US
Источник
Ubuntu Documentation
Content Cleanup Required
This article should be cleaned-up to follow the content standards in the Wiki Guide. More info.
Style Cleanup Required
This article does not follow the style standards in the Wiki Guide. More info.
You can use the Ubuntu Live Cd to install packages (i.e. to an older offline Ubuntu computer).
Source.list
If you have a new Live CD and the Live CD in the Source.list file, comment all the repositories excepting the CD and
After upgrade, uncomment all the other repositories in the source.list file.
Some computers can ask to use apt-cdrom. If so, follow the instructions that appears bellow.
Apt-cdrom
apt-cdrom can add a new CDROM to APTs sources.list file (list of available repositories). It is necessary to use apt-cdrom to add CDs to the APT system, it cannot be done by hand.
Put the Live CD in the unit and use one of these commands, in this order :
test: sudo apt-cdrom --no-act add
if everything is OK: sudo apt-cdrom add
sudo apt-cdrom ident
sudo apt-cdrom -d "your-cdrom-mount-point" -r
Description and options
add is used to add a new disc to the source list. It will unmount the CDROM device, prompt for a disk to be inserted and then procceed to scan it and copy the index files. If the disc does not have a proper .disk/ directory you will be prompted for a descriptive title. APT uses a CDROM ID to track which disc is currently in the drive and maintains a database of these IDs in /var/lib/apt/cdroms.list
ident is a debugging tool to report the identity of the current disc as well as the stored file name.
-d or —cdrom : MountPoint (specify the location to mount the cdrom). This mount point must be listed in /etc/fstab and properly configured.
-r or —rename : rename a disc; change the label of a disk or override the disks given label. This option will cause apt-cdrom to prompt for a new label.
-n, —just-print, —recon or —no-act: no Changes; Do not change the sources.list file and do not write index files. Everything is still checked however.
After dist-upgrade you can test that everything is OK
Источник