Ошибка автоматической установки
У меня настроен сервер Ubuntu Orchestra, и я пытаюсь установить настольный Ubuntus по сети. Я пытаюсь установить версию 11.10. Мой предварительный файл выглядит так:
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US
# Enable extras.ubuntu.com.
d-i apt-setup/extras boolean true
# Install the Ubuntu desktop.
tasksel tasksel/first multiselect none
# Keyboard selection.
# Disable automatic (interactive) keymap detection.
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string br
# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc boolean true
# You may set this to any valid setting for $TZ; see the contents of
# /usr/share/zoneinfo/ for valid values.
d-i time/zone string America/Sao_Paulo
### Account setup
d-i passwd/root-login boolean false
d-i passwd/make-user boolean true
d-i passwd/user-fullname string Ubuntu User
d-i passwd/username string ubuntu
# Normal user's password, either in clear text
d-i passwd/user-password-crypted password $1$ZgNbzcXq$hUR0CnHVtYAvNNNnA2.br1
### Partitioning
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto/choose_recipe select atomic
d-i partman-auto/expert_recipe string \
boot-root :: \
40 50 100 ext4 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /boot } \
. \
1000 1500 2000 ext4 \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } \
. \
1000 1500 100000000 ext4 \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /home } \
. \
64 512 300% linux-swap \
method{ swap } format{ } \
.
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
### Apt setup
# You can choose to install non-free and contrib software.
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
d-i apt-setup/services-select multiselect security
d-i apt-setup/security_host string security.ubuntu.com
d-i apt-setup/security_path string /ubuntu
### Mirror settings
d-i mirror/country string manual
d-i mirror/http/hostname string ubuntu.mirror.pop-sc.rnp.br
d-i mirror/http/directory string /ubuntu
d-i mirror/http/proxy string
### Package selection
#tasksel tasksel/first multiselect ubuntu-desktop
# Individual additional packages to install
#d-i pkgsel/include string openssh-server
popularity-contest popularity-contest/participate boolean false
d-i grub-installer/only_debian boolean true
### Finishing up the installation
d-i finish-install/reboot_in_progress note
И я получаю сообщение об ошибке на этапе установки пакетов. Появляется меню, где у меня есть возможность снова выбрать установочные пакеты, но даже если я это сделаю, я получаю ту же ошибку. Что не так в этом файле конфигурации? В части tasksel, кроме того, я также попробовал ubuntu-desktop, но я получаю ту же ошибку.
Цени любую помощь
Келли
[Редактировать]
Я внес изменения, комментируя раздел партиции, и это сработало! Но мне действительно нужно указать схему разбиения...:(
2 ответа
ОП решили проблему самостоятельно
Я внес изменения, комментируя раздел партиции, и это сработало! Но мне действительно нужно указать схему разбиения...:(
Я также столкнулся со случаем, когда другие разделы моего preseed вели себя неправильно (снова запрашивались предварительно заданные пароли и раскладки клавиатуры), потому что мой рецепт не был «хорошим». Таким образом, работа рецептов или их удаление, казалось, заставляли все работать так, как задумано.
Рецепты atomic, home и multi, найденные на DVD-диске Debian 11, в пакете partman-auto_157_amd64.udeb (путь /pool/main/p/partman-auto), начинаются с этого раздела прямо здесь, что, похоже, имеет значение в моем случае. :
1 1 1 free
$iflabel{ gpt }
$reusemethod{ }
method{ biosgrub } .
И этот раздел для efi:
538 538 1075 free
$iflabel{ gpt }
$reusemethod{ }
method{ efi }
format{ } .
Добавление этого раздела в начало моего рецепта заставило его наконец работать без проблем. Большинство рецептов, размещенных в Интернете, на github или других платформах, не имеют этого раздела, и, как следствие, мои рецепты просто игнорировались во время развертывания.