Solution to the problem of "An error occurred while setting up the basic software repository" when installing the Galaxy Kirin Server Operating System V10SP2 using a USB flash drive, resulting in the inability to continue the installation.

1. Reproduction steps

Operating system version: Galaxy Kirin advanced server operating system V10SP2-20210524 (x86_64)

  1. Use the Rufus tool to create a USB boot disk;
    Insert image description here
  2. Modify the startup items and choose to boot from the USB disk;
    Insert image description here
  3. Enter the system installation interface. Here you can see that an error is reported on the "Software"-"Installation Source" option, prompting "An error occurred while setting up the basic software repository";
    Insert image description here
  4. Click "Installation Source" to enter the installation source configuration page. We find that the installation source can only be selected from the network. If the current server is in an Internet environment, then we can also configure the correct Galaxy Kirin external network software source address for operating system Install. For servers in an intranet environment, the installation steps will not be able to continue without making any changes;
    Insert image description here

2. Solution

Method ①: Configure Galaxy Kirin external network source (limited to Internet environment)

  1. Select "Network and Hostname" on the system installation interface, enter the network configuration page, and configure the server's network (DHCP or static) according to the on-site environment. After confirming that the configuration is correct, click "Finish" in the upper left corner;
    Insert image description here
    Insert image description here
    Insert image description here
  2. Select "Installation Source" on the system installation interface, enter the installation source configuration page, and enter the correct external network source address. For example, the external network source address of Galaxy Kirin Advanced Server Operating System V10SP2-20210524 (x86_64) is: https://update
    . cs2c.com.cn/NS/V10/V10SP2/os/adv/lic/base/x86_64/
    Insert image description here
    Insert image description here
  3. Select "Root password" under user settings on the system installation interface to enter the root password configuration interface. After the password setting is completed, you can "start installing" the operating system.
    Insert image description here

Method ②: Modify the installation boot parameters

  1. In the installation boot interface, move the cursor to the "Install Kylin Linux Advanced Server V10" option, and then press the Tabkey or ekey to enter the startup parameter modification page. The following picture shows the initial parameters before modification;
    Insert image description here
  2. Add inst.repo=hd:LABEL=xxxx at the end of the startup parameters , where " xxxx " should be consistent with the value after the original parameter inst.stage2=hd:LABEL =, such as KYLIN-SERVE here , the modified result As shown below:
    Insert image description here
  3. After confirming that the modification is correct, press Enter to enter the system installation interface. We found that the installation source still reported an error "Error setting up the basic software warehouse." This is because /run/install/repo is mounted as rw by default and needs to be switched to the command line. Remount the mode to ro. The steps are as follows:
    Insert image description here
    (1) Press Ctrl+ALT+F2 simultaneously in the graphical installation interface to switch to the command line mode; (
    Insert image description here
    2) Execute the command mount | grep repo to check the U disk mounting status;
    Insert image description here
    (3) ) Execute the command mount -o ro,remount /run/install/repo to remount as ro;
    Insert image description here
    (4) Press Ctrl+ALT+F6 again to switch back to the graphical installation interface, click "Installation Source" to enter the software source configuration interface, and then Click "Finish" in the upper left corner, and then we find that the software installation source can be recognized normally;
    Insert image description here
    Insert image description here
  4. Finally, we set the root password and click "Start Installation" to install the operating system.
    Insert image description here
    Reference article:
    https://gitee.com/src-openeuler/anaconda/pulls/127

Guess you like

Origin blog.csdn.net/ShenSeKyun/article/details/127220974