Suman Rajan

Cubic Network Fix

Suman Rajan
Table of Contents

Cubic (Custom Ubuntu ISO Creator) is a GUI wizard to create a customized bootable Ubuntu Live CD (ISO) image.

Cubic features an integrated command line chroot environment to make the customizations and permits effortless navigation, backward and forward, through the ISO generation steps. You can create new customization projects or modify existing projects. Important parameters are automatically populated with intelligent defaults to simplify the customization process.

To install Cubic…

1
2
3
    $ sudo apt-add-repository ppa:cubic-wizard/release
    $ sudo apt update
    $ sudo apt install cubic

If you manually add this repository, be sure to add the corresponding key:

1
    $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B7579F80E494ED3406A59DF9081525E2B4F1283B

Error #

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
root@debian:~ # apt update 
Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease
  Could not resolve 'archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
  Could not resolve 'security.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
  Could not resolve 'archive.ubuntu.com'
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.

Resolve no ping within cubic chroot env #

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
mkdir /run/systemd/resolve/

echo "nameserver 1.1.1.1 " | tee /run/systemd/resolve/resolv.conf

ln -sr /run/systemd/resolve/resolv.conf /run/systemd/resolve/stub-resolv.conf

cat /etc/resolv.conf

/etc/init.d/networking restart

ping debian.org