[Bug 1923145] Re: Actually support Ubuntu

TJ 1923145 at bugs.launchpad.net
Fri Apr 9 11:31:29 UTC 2021


** Description changed:

  version 5-1 does not support Ubuntu correctly in that it tries to use
  the version number rather than version codename in arguments to
  debootstrap.
+ 
+ $ sudo mkosi
+ ...
+ Traceback (most recent call last):                                                                                                
+   File "/usr/bin/mkosi", line 4539, in <module>                                                                                   
+     main()                                                       
+   File "/usr/bin/mkosi", line 4535, in main                                                                                       
+     run_verb(args)                                                                                                                
+   File "/usr/bin/mkosi", line 4507, in run_verb                                                                                   
+     build_stuff(args)                                            
+   File "/usr/bin/mkosi", line 4333, in build_stuff                                                                                
+     raw, tar, root_hash = build_image(args, workspace, do_run_build_script=False, cleanup=True)                                   
+   File "/usr/bin/mkosi", line 4153, in build_image                                                                                
+     install_distribution(args, workspace.name,                                                                                    
+   File "/usr/bin/mkosi", line 1987, in install_distribution                                                                       
+     install[args.distribution](args, workspace, do_run_build_script)
+   File "/usr/lib/python3.8/contextlib.py", line 75, in inner                                                                      
+     return func(*args, **kwds)                                   
+   File "/usr/bin/mkosi", line 1717, in install_ubuntu                                                                             
+     install_debian_or_ubuntu(args, workspace, do_run_build_script=do_run_build_script, mirror=args.mirror)                        
+   File "/usr/bin/mkosi", line 1633, in install_debian_or_ubuntu  
+     run(cmdline, check=True)                                     
+   File "/usr/bin/mkosi", line 69, in run                                                                                          
+     return subprocess.run(cmdline, **kwargs)                     
+   File "/usr/lib/python3.8/subprocess.py", line 512, in run                                                                       
+     raise CalledProcessError(retcode, process.args,                                                                               
+ subprocess.CalledProcessError: Command '['debootstrap', '--verbose', '--variant=minbase', '--include=systemd-sysv', '--exclude=sys
+ v-rc,initscripts,startpar,lsb-base,insserv', '--components=main', '--merged-usr', '"20.04"', '/var/tmp/mkosi-akzr5g4y/root', 'http
+ ://archive.ubuntu.com/ubuntu']' returned non-zero exit status 1.
+ 
+ 
+ Notice the "20.04" argument passed to debootstrap, which should be "focal".

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1923145

Title:
  Actually support Ubuntu

Status in mkosi package in Ubuntu:
  In Progress

Bug description:
  version 5-1 does not support Ubuntu correctly in that it tries to use
  the version number rather than version codename in arguments to
  debootstrap.

  $ sudo mkosi
  ...
  Traceback (most recent call last):                                                                                                
    File "/usr/bin/mkosi", line 4539, in <module>                                                                                   
      main()                                                       
    File "/usr/bin/mkosi", line 4535, in main                                                                                       
      run_verb(args)                                                                                                                
    File "/usr/bin/mkosi", line 4507, in run_verb                                                                                   
      build_stuff(args)                                            
    File "/usr/bin/mkosi", line 4333, in build_stuff                                                                                
      raw, tar, root_hash = build_image(args, workspace, do_run_build_script=False, cleanup=True)                                   
    File "/usr/bin/mkosi", line 4153, in build_image                                                                                
      install_distribution(args, workspace.name,                                                                                    
    File "/usr/bin/mkosi", line 1987, in install_distribution                                                                       
      install[args.distribution](args, workspace, do_run_build_script)
    File "/usr/lib/python3.8/contextlib.py", line 75, in inner                                                                      
      return func(*args, **kwds)                                   
    File "/usr/bin/mkosi", line 1717, in install_ubuntu                                                                             
      install_debian_or_ubuntu(args, workspace, do_run_build_script=do_run_build_script, mirror=args.mirror)                        
    File "/usr/bin/mkosi", line 1633, in install_debian_or_ubuntu  
      run(cmdline, check=True)                                     
    File "/usr/bin/mkosi", line 69, in run                                                                                          
      return subprocess.run(cmdline, **kwargs)                     
    File "/usr/lib/python3.8/subprocess.py", line 512, in run                                                                       
      raise CalledProcessError(retcode, process.args,                                                                               
  subprocess.CalledProcessError: Command '['debootstrap', '--verbose', '--variant=minbase', '--include=systemd-sysv', '--exclude=sys
  v-rc,initscripts,startpar,lsb-base,insserv', '--components=main', '--merged-usr', '"20.04"', '/var/tmp/mkosi-akzr5g4y/root', 'http
  ://archive.ubuntu.com/ubuntu']' returned non-zero exit status 1.

  
  Notice the "20.04" argument passed to debootstrap, which should be "focal".

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mkosi/+bug/1923145/+subscriptions



More information about the Ubuntu-sponsors mailing list