Cannot Select Original ISO

Asked by Dil Dissanayake on 2019-03-12

I successfully installed Cubic on Lubuntu Desktop 16.04 and selected a project folder with no issue. However, when trying to select the original ISO, it seems that the Ubuntu.iso image I downloaded directly from their website is getting mounted and not getting selected. The same applies when using Ubuntu Desktop 16.04. I have searched the internet high and low but cannot find any solution to this. I used CUBIC sometime ago and it selected the ISO file without any issues but after installing the latest version, it seems that once I select the ISO and press the "SELECT" button, it just mounts the disc.

Question information

Language:
English Edit question
Status:
Solved
For:
Cubic Edit question
Assignee:
No assignee Edit question
Solved by:
Dil Dissanayake
Solved:
2019-03-19
Last query:
2019-03-19
Last reply:
2019-03-16
Dil Dissanayake (dilshandiss) said : #1

The following are the images I downloaded directly from the Ubuntu Website;

1) Ubuntu Server 16.04
2) Ubuntu Desktop 16.04
3) Ubuntu Desktop 18

Cubic PPA (cubic-wizard) said : #2

Dil,

Would you please provide more information...

You are running Cubic in Lubuntu?
Which version?

You are customizing Lubuntu? (If not, please let me know which Ubuntu based distro you are customizing).
Would you please share the exact download URLs you are using, so I can test with the same downloads you are working with?

Is your Cubic project folder a local folder, a link to a folder, or a mounted folder?
Is the *.iso you want to customized located in a local folder, a link to a folder, or a mounted folder?

Cubic PPA (cubic-wizard) said : #3

Update:

I tried to recreate this issue:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Launched the following live iso in a virtual machine:

        lubuntu-18.10-desktop-amd64.iso

Installed the latest version of cubic:

        cubic - 2019.03-47-release

Installed missing package (See Bug #1819803)

        $ sudo apt install gir1.2-gtksource-3.0

Downloaded the following Ubuntu Server iso:

        ubuntu-18.04-live-server-amd64.iso
        (This iso is only 845 MB, so it is a reasonable size for testing in a virtual machine with 5096 GB memory running a live iso).

Launched Cubic.

Created a project folder called "Custom".

Clicked Next. Clicked Select. Selected "ubuntu-18.04-live-server-amd64.iso".

The iso was mounted by cubic and all fields on Cubic's New Project page populated correctly.

Clicked Next.

Cubic's chroot page appeared. There was a "dpkg-divert" error message in the chroot terminal, but I think this can be ignored.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

This test seems to work fine.
I can try again with the ISOs and versions you are using, once you share that info.

Dil Dissanayake (dilshandiss) said : #4

Hi,

Thank you for a prompt response and the effort. Please see below to the responses to your questions.

You are running Cubic in Lubuntu?
Yes

Which version?
Lubuntu 16.04

You are customizing Lubuntu? (If not, please let me know which Ubuntu based distro you are customizing).
No, I want to customize a vanilla Ubuntu Server 16.04

Would you please share the exact download URLs you are using, so I can test with the same downloads you are working with?
Ubuntu Server 16.04 - http://releases.ubuntu.com/16.04/ubuntu-16.04.6-server-amd64.iso

Ubuntu Desktop 16.04 - http://releases.ubuntu.com/16.04/ubuntu-16.04.6-desktop-amd64.iso

Ubuntu Desktop 18.04 - http://releases.ubuntu.com/18.04.2/ubuntu-18.04.2-live-server-amd64.iso?_ga=2.215611422.867675520.1552451267-427152761.1550648145

Is your Cubic project folder a local folder, a link to a folder, or a mounted folder?
Local Folder on the Desktop

Is the *.iso you want to customized located in a local folder, a link to a folder, or a mounted folder?
Another Local Folder on the Desktop

The steps I did are as follows;

1) Installed Vanilla Ubuntu Server 16.04

2) Installed Lubuntu 16.04 by executing the following command;
$ sudo apt-get install --no-install-recommends lubuntu-desktop

3) Installed Cubic by executing the following commands (I didnt run into any dependency issues / it downloaded the required information automatically without my involvement);
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 081525E2B4F1283B

$ sudo apt-add-repository ppa:cubic-wizard/release

$ sudo apt update

$ sudo apt install cubic

4) Reboot the machine and login to Lubuntu

5) Downloaded Ubuntu Server 16.04 (with the links given above) to a folder on my desktop

6) Opened Cubic and selected another folder on my Desktop to house all my projects

7) The next screen asks for my original ISO, so I browse to it and when I press the Select Button it mounts the image, i can then either press cancel (nothing is loaded) or I navigate to the mounted ISO and choose a random folder (within the ISO) but cannot proceed forward as all fields are not populated, especially the first field has an "X" next to it whilst most others had a "tick".

Cubic PPA (cubic-wizard) said : #5

Dil,

After reading the steps you listed, my initial thought is that you may be missing some important package(s) that is(are) typically included in the full desktop environment, perhaps since you are using "--no-install-recommends" while installing the lubuntu-desktop package in Ubuntu server.

Try launching Cubic from the command-line using the command "cubic".
This will print a log to the console.

Try to select the *.iso, as you normally do, and hopefully there will be an error that is printed to the console.

Cut and paste the Cubic output here, and I'll see if I can spot something out of the ordinary.

Dil Dissanayake (dilshandiss) said : #6

Hi,

You know, I had the same initial thought as well, since I'm going down the minimal gui path, i must be missing some important dependencies that is somehow breaking Cubic's functionality. However, i tried the same with full blown versions of Ubuntu Desktop 16.04 and 18.04. Both suffered much the same fate unfortunately. Images used were the same links I used above.

I'm running into a little issue when trying to launch Cubic from CLI, it seems to be some authentication issue of the sort, here is my output;

dil@iphostervps:~$ cubic

Cubic (Custom Ubuntu ISO Creator) is a graphical user interface application and should be run using the application launcher. See "man cubic" for more informati on.

==== AUTHENTICATING FOR cubic ===
Enter superuser password to start Cubic
Authenticating as: Dil Diss,,, (dil)
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freed esktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized

This incident has been reported.
dil@iphostervps:~$ sudo su
[sudo] password for dil:
root@iphostervps:/home/dil# cubic

Error: Cubic may not be run as a privileged user. Run Cubic using an account wit h sudo (superuser) membership, and you will be prompted for the superuser passwo rd. See "man cubic" for more information.

root@iphostervps:/home/dil# man cubic
root@iphostervps:/home/dil#

Did some googling and found that other users of other systems / scripts / apps encounter this issue but none of their solutions worked here for your software.

If you like, I can fire up my screen recorder and do a quick video of my initial steps and this scenario which could possibly help you further.

Dil Dissanayake (dilshandiss) said : #7

just one more thing, user dil in the above info is part of the sudoers group

Cubic PPA (cubic-wizard) said : #8

Use dil should be a member of sudoers.
Cubic will present a dialog box to prompt for the sudo password for dil.

Do you have xerver running?
Are you logged into the graphical desktop environment?

You must be able to launch graphical applications for the password dialog to work.

I couldn't recreate this issue, even when I started with Ubuntu server, as you did...

1)
I installed ubuntu-18.04-live-server-amd64.iso into a virtual machine.

2)
I then installed Lubuntu DE using:
$ sudo apt-get install --no-install-recommends lubuntu-desktop

3)
Then I installed Cubic:
$ sudo apt-add-repository ppa:cubic-wizard/release
$ sudo apt update
$ sudo apt update
$ sudo apt install cubic
$ sudo apt install gir1.2-gtksource-3.0

4)
Then I logged out.

5)
I logged back into the Lubuntu Graphical Desktop Environment.

6)
I was able to start cubic from the command line.
I was presented with the GUI to enter the admin password.
Then the Cubic window appeared.
I selected an empty project folder.
Then I selected "lubuntu-18.10-desktop-amd64.iso" as the ISO I wanted to customize.
All fields auto-populated and I did not receive any error in the terminal.

Dil Dissanayake (dilshandiss) said : #9

Hi,

Here are the answers to your questions...

Use dil should be a member of sudoers.
Cubic will present a dialog box to prompt for the sudo password for dil.

- User Dil is part of Sudoers as I mentioned previously.

Do you have xerver running?
- Yes and No. Yes because Lubuntu runs a LXDE based GUI/desktop. No because i think x server is not supported or been stopped with Lubuntu

Are you logged into the graphical desktop environment?

- Yes, I have Putty and my remote desktop open at teh same time. The problem seems to be with this error that is given when trying to run cubic from the cli.

I will try with a fresh buntu server and see again, but I do think there is an issue here since im using the ISO from the Ubuntu site. I noticed that you were using a live disk rather than installation, would you be able to do an install instead?

Cubic PPA (cubic-wizard) said : #10

Yes... I was just confirming that I understood that you had setup user Dil (as a member of sudoers).

Regarding my test...
I did do a full install of Ubuntu Server 18.04 onto a VirtualBox instance.
I booted into this, and I installed the package lubuntu-desktop (as you did), and then I installed Cubic.
I logged out, and logged back in using the graphical login screen, which took me into the desktop.
I was then able to launch Cubic.

Are you trying to run Cubic from Putty to a remote desktop?

Dil Dissanayake (dilshandiss) said : #11

Hi,

Thanks for your response.

Im also not sure why this is occuring. I jsut spooled up another VM and tried but im getting the above mentioned issues. However, one thing I have noticed is that I have been trying with Ubuntu Server 16.04 whereas you have been trying out 18.04

Would you be able to check with 16.04 instead? Both aspects, launching Cubic from CLI and the Original ISO issue.

In the meantime, I will spool up a 18.04 and try again as well from my end.

Cubic PPA (cubic-wizard) said : #12

OK, that may be the difference. I'll try with 16.04.

Cubic PPA (cubic-wizard) said : #13

I'm still not able to recreate this issue, even with Ubuntu Server 16.04.

1)
I installed ubuntu-16.04.6-server-amd64.iso into a virtual machine.

2)
I then installed Lubuntu DE using:
$ sudo apt-get install --no-install-recommends lubuntu-desktop

3)
Then I rebooted, and I logged back into the Lubuntu Graphical Desktop Environment.

4)
Then I installed Cubic:
$ sudo apt-add-repository ppa:cubic-wizard/release
$ sudo apt update
$ sudo apt update
$ sudo apt install cubic
$ sudo apt install gir1.2-gtksource-3.0

6)
I was able to start cubic from the command line.
I was presented with the GUI to enter the admin password.

The Cubic window appeared.
I selected an empty project folder.

Then I selected "ubuntu-16.04.6-server-amd64.iso" as the ISO I wanted to customize.
All fields auto-populated and I did not receive any error in the terminal.

Cubic PPA (cubic-wizard) said : #14

Oops... Meant to hit the "Just Add a Comment" button, not the "Propose Answer" button.

Dil Dissanayake (dilshandiss) said : #15

Hi,

Thanks for your response. The only other explanation is to try and attempt this either with a local vm on my pc or i try another vps provider. I normally just do these types of things with my vps provider rather than doing it locally on my machines so i am free to work on my server from pretty much anywhere, on any device. I will try this with another provider and see , will report back the update.

Thanks for your support and time on this.

Dil Dissanayake (dilshandiss) said : #16

I just tried with a different vps provider and im happy to report that its working. Very sorry that you had to put a great deal of effort for this but who knew it could have beeen an issue. I will need to follow up with my previous vps provider. However, one thing to mention is that i still get that error when launching cubic from command line, the same applies to even the vm im running on my machine for both versions 16.04 and 18.04

thanks for your support!