I weedogged Ubuntu Kylin 20.04 pro, which boots and runs fine. But whenever I run "sudo ...", occurs this error:
Code: Select all
sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?
Actually I tried two methods of making weedog ubuntu-kylin, both resulting in the above.
Method 1:
- Boot ubuntu-kylin live iso (on an easy2boot disk), then run:
Code: Select all
sudo tar -cvpzf /mnt/sda3/weedog-ubuntu-kylin/ubuntu-kylin.tar.gz --one-file-system /
- Reboot computer using fossapup (because I'm more comfortable with using puppy as root), and run:
Code: Select all
mkdir -p /mnt/sda3/weedog-ubuntu-kylin/01-ubuntu-kylin-live
tar -xvpzf /mnt/sda3/weedog-ubuntu-kylin/ubuntu-kylin.tar.gz -C /mnt/sda3/weedog-ubuntu-kylin/01-ubuntu-kylin-live/ --numeric-owner
- Copy/Modiy vmlinuz and initrd and place them in /mnt/sda3/weedog-ubuntu-kylin/, and successfully rebooted into ubuntu kylin.
Method 2:
- Use ubuntu-kylin live iso (still from that easy2boot disk) to fully install it on a usb hdd;
- Reboot computer using fossapup (again, because it's my handy daily system);
- Plug in the fully installed kylin (on sdb2), and run:
Code: Select all
cp -rp /mnt/sdb2/. /mnt/sda3/weedog-ubuntu-kylin/01-ubuntu-kylin-installed/
rm -rf /mnt/sda3/weedog-ubuntu-kylin/01-ubuntu-kylin-live
- Again successfully booted into kylin, but still not able to run "sudo".
Note: I checked the sudo file by running:
Code: Select all
ls -l /usr/bin/sudo
-rwsr-xr-x 1 root root 166056 ...
Does not seem to be a permission issue.