Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installer stuck in a loop while trying to add CD-ROM partition to apt sources #339

Open
merajmasuk opened this issue Mar 15, 2025 · 0 comments

Comments

@merajmasuk
Copy link

What Happened?

I had to urgently clean install Pop OS LTS 22.04 on my machine and I had no working USB drive at my hand. Hence, I resorted to mounting the ISO file and copying everything to a 10 GB partition created on my hard drive. Then I booted the live media from there (Which now mounted at /cdrom/). During installation process the progress is gets stuck at 35%. Upon investigation I found that the installer was trying to add the /cdrom/ to the apt resources. But due to reading the name as '', it is giving error and stuck in an infinite loop. The partition had a name still the installer was giving the error (check logs).

Steps to Reproduce

  1. Mount an iso image on CDROM
  2. Copy the files from the CDROM on a separate partition (with name 'bootable' in my case) from the hard drive
  3. Restart the machine and boot from that partition.
  4. Proceed installation normally.
  5. During installation it gets stuck at 35%.

Expected Behavior

It should proceed the installation normally without any error.

OS Version

Other Linux

Session Type

Classic Session (X11, This is the default)

Software Version

Latest release (I have run all updates)

Log Output

$ cat /tmp/installer.log
[INFO distinst:src/installer/steps/configure/chroot_conf.rs:111] adding apt-cdrom to /etc/apt/sources.list
[INFO distinst:crates/chroot/src/command.rs:103] running env -i DEBIAN_FRONTEND="noninteractive" HOME="/root" LC_ALL="en_US.UTF-8" PATH="/usr/sbin:/usr/bin:/sbin:/bin" "chroot" "/tmp/distinst.nKu0gVlDDurW" "apt-cdrom" "-o" "Acquire::cdrom::AutoDetect=0" "-o" "Acquire::cdrom::mount=/cdrom" "-o" "APT::CDROM::NoMount=1" "add"
[INFO distinst:crates/chroot/src/command.rs:93] Using CD-ROM mount point /cdrom/
[INFO distinst:crates/chroot/src/command.rs:93] Identifying... [7ebb771aad03e4e74c8d7a41a78d467a-2]
[INFO distinst:crates/chroot/src/command.rs:93] Scanning disc for index files...
[INFO distinst:crates/chroot/src/command.rs:93] Found 6 package indexes, 0 source indexes, 0 translation indexes and 3 signatures
[INFO distinst:crates/chroot/src/command.rs:93] Please provide a name for this Disc, such as 'Debian 5.0.3 Disk 1':
[INFO distinst:crates/chroot/src/command.rs:93] Name: ''
[INFO distinst:crates/chroot/src/command.rs:93] That is not a valid name, try again.
[INFO distinst:crates/chroot/src/command.rs:93] Please provide a name for this Disc, such as 'Debian 5.0.3 Disk 1':
[INFO distinst:crates/chroot/src/command.rs:93] Name: ''
[INFO distinst:crates/chroot/src/command.rs:93] That is not a valid name, try again.
[INFO distinst:crates/chroot/src/command.rs:93] Please provide a name for this Disc, such as 'Debian 5.0.3 Disk 1':
[INFO distinst:crates/chroot/src/command.rs:93] Name: ''

Hardware Info

OS: Pop OS LTS 22.04

Relevant Partitions:

NAME      MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
loop0       7:0    0   2.5G  1 loop  /rofs
sda         8:0    0 931.5G  0 disk  
sda3        8:3    0   9.3G  0 part  /tmp/distinst.nKu0gVlDDurW/cdrom
                                     /cdrom
sr0        11:0    1  1024M  0 rom   
zram0     251:0    0  15.5G  0 disk  [SWAP]
cryptdata 252:0    0 214.6G  0 crypt 
data-root 252:1    0 214.6G  0 lvm   /tmp/distinst.nKu0gVlDDurW
nvme0n1   259:0    0 223.6G  0 disk  
nvme0n1p1 259:1    0  1022M  0 part  /tmp/distinst.nKu0gVlDDurW/boot/efi
nvme0n1p2 259:2    0     4G  0 part  /tmp/distinst.nKu0gVlDDurW/recovery
nvme0n1p4 259:3    0     4G  0 part  
nvme0n1p3 259:7    0 214.6G  0 part 

NOTE: /dev/sda3 is where the installation media files are. And I've trying to install it on nvme0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant