How to install previous version of Cubic?

Asked by Hasan Merkit

New Cubic version is fails while creating customized .iso file. How i can downgrade to 2020.02.62 version back?

Question information

Language:
English Edit question
Status:
Solved
For:
Cubic Edit question
Assignee:
No assignee Edit question
Solved by:
Cubic PPA
Solved:
Last query:
Last reply:
Revision history for this message
Cubic PPA (cubic-wizard) said :
#1

What is the error you get with the current version?

Revision history for this message
Hasan Merkit (hasanmerkit) said :
#2

Okey, i can share log after half-hour. I installed successfuly previous version using ppa:cubic-wizard/classic and thats works fine.

Revision history for this message
Hasan Merkit (hasanmerkit) said :
#3

Now stuck at "Copy the selected boot kernel files to the disk" on updated version.
Here's terminal screenshot:
https://i.hizliresim.com/aM48c3.png

Revision history for this message
Cubic PPA (cubic-wizard) said :
#4

The image you linked to says...

Warning: Potential Security Risk Ahead

Firefox detected a potential security threat and did not continue to i.hizliresim.com. If you visit this site, attackers could try to steal information like your passwords, emails, or credit card details.

Revision history for this message
Cubic PPA (cubic-wizard) said :
#5

Run Cubic from the command line by typing...

    $ cubic

...and press the Enter key.

This will output a log to the terminal.

When you encounter is error, copy and paste the log text output here.
(Do not link to a screenshot).

Revision history for this message
Launchpad Janitor (janitor) said :
#6

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Revision history for this message
Hasan Merkit (hasanmerkit) said :
#7

Sorry about time, but all time i have differend problems in newer version.
After your recommenting new version (in https://bugs.launchpad.net/cubic/+bug/1916225), i tried new version but a crash happened again. ( https://www.youtube.com/watch?v=-1qju6V1jLM )

Now stuck at "Identify disk boot kernels" : https://www.teteos.net/images/uploads/bugreport/pilux/cubic_bug2_1.png

  • The process id is...................... 76891
  • The initrd file contents information
    is..................................... 3492864 0x354C00 LZ4
                                            compressed data, legacy
  • Initrd compression format found?....... Yes
  • The compression format is.............. lz4
  • Delete existing files with pattern..... /var/tmp/unmkinitramfs_*
Exception in thread Thread-6:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/share/cubic/navigator.py", line 446, in navigate
    result = new_page.enter(action, page) if new_page else None
  File "/usr/share/cubic/pages/prepare_page.py", line 131, in enter
    model.kernel_details_list = create_boot_kernel_details_list()
  File "/usr/share/cubic/pages/prepare_page.py", line 319, in create_boot_kernel_details_list
    kernel_details_list = create_kernel_details_list(directory_1, directory_2)
  File "/usr/share/cubic/pages/prepare_page.py", line 361, in create_kernel_details_list
    file_utilities.delete_files_with_pattern(file_path_pattern)
  File "/usr/share/cubic/utilities/file_utilities.py", line 119, in delete_files_with_pattern
    [os.remove(delete_file_path) for delete_file_path in glob.glob(pattern)]
  File "/usr/share/cubic/utilities/file_utilities.py", line 119, in <listcomp>
    [os.remove(delete_file_path) for delete_file_path in glob.glob(pattern)]
PermissionError: [Errno 1] İşleme izin verilmedi: '/var/tmp/unmkinitramfs_IjDYPr'

Revision history for this message
Hasan Merkit (hasanmerkit) said :
#8

PermissionError: [Errno 1] İşleme izin verilmedi: '/var/tmp/unmkinitramfs_IjDYPr'

İşleme izin verilmedi (Turkish) means: Operation not allowed

Revision history for this message
Cubic PPA (cubic-wizard) said :
#9

OK, thanks for the information.
I think I see what the problem is, and I should be able to fix this quickly.

I've created Bug #1917927 to address this.

So I can better understand this bug, would you please confirm if this (assumed) sequence is what happened?...

    1. You had cubic "classic" project you were working on.
    2. You opened the "classic" project in the newest version of Cubic.
    3. Cubic automatically migrated the project for you.
    4. And then you encountered this issue?

Revision history for this message
Hasan Merkit (hasanmerkit) said :
#10

1. You had cubic "classic" project you were working on.
Before updating cubic, i removed old version with this command: apt-get remove -y cubic* --purge

2. You opened the "classic" project in the newest version of Cubic.
No. I'm not amateur xd, I already thought that the old version project might be corrupt and tried it by creating a new one.

Final: This problem solved with trying install some packages.
Here is my terminal history. I not know how solved but after installing this packages manually, problem solved.

apt-get install -y software-properties-common
add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
apt-get update && apt-get upgrade -y

apt-get install -y isolinux syslinux syslinux-legacy xorriso mtools squashfs-tools acpi-support genisoimage fakeroot
# For May be Cubic Latest and Some Python Libs for used Apps
apt-get install -y python3-icu python3-magic python3-pydbus python3-pyinotify python3-systemd python3-xdg python-oauth python-gi systemd-container binwalk gir1.2-gtksource-4 libgtksourceview-4-0

Revision history for this message
Cubic PPA (cubic-wizard) said :
#11

I had asked question #2 because there is a Migration capability in Cubic that converts an "old" project into a newer project. I thought there might be a bug in the Migration feature that caused the issue you are seeing.

1. software-properties-common is a default package for Ubuntu. Was this not installed on your system?

2. How were you able to install Cubic without the universe repository enabled? There are quite a few dependencies that require the Universe repository to be enabled? You didn't get any errors when installing Cubic with this repository?

3. How were you able to install Cubic without apt automatically installing the dependencies?

- isolinux is a dependency for Cubic
- xorriso is a dependency for Cubic
- syslinux is a dependency for xorriso
- squashfs-tools is a dependency for Cubic

..There are others, such as python3-magic, needed by Cubic, but I didn't go through your full list.

The main question is, how did Cubic even install in the first place without these???
This would explain why it is not working for you.

4. These packages are probably not needed directly for Cubic, but may be needed for other parts of your desktop:

- I don't think mtools and acpi-support, are needed for Cubic (unless it is a dependency of another dependent package).
- usb-creator-gtk is required for ubuntu-desktop, but not for Cubic.
- fakeroot is not required for Cubic.

Revision history for this message
Best Cubic PPA (cubic-wizard) said :
#12

This is what I got when I tried to install Cubic without the universe repository enabled.

As you can see Cubic can not be installed.

I suspect you've done stuff on your system that has removed or altered many of the required dependencies that are automatically installed when you install Cubuc.

    ubuntu@ubuntu:~$ sudo apt install cubic
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
     cubic : Depends: binwalk (>= 2.1.1) but it is not installable
             Depends: python3-pydbus (>= 0.6.0) but it is not installable
             Depends: xorriso (>= 1.4.8) but it is not installable
    E: Unable to correct problems, you have held broken packages.

Revision history for this message
Hasan Merkit (hasanmerkit) said :
#13

I checked my terminal history and its my first installation:

mv ubuntu1804.iso /home/hasanmerkit/Desktop/ubuntu1804.iso
sudo apt-add-repository ppa:cubic-wizard/release
sudo apt-get update && apt-get upgrade -y
sudo apt-get autoremove -y
sudo apt-get install cubic
sudo cubic
cubic

Before this bug report, im already installed this packages;
isolinux syslinux syslinux-utils xorriso squashfs-tools casper, dialog
(If you want asking "Why you are installed this packages manually?", my old ISO build tool required this depencedes.)

I think may be solved this problem this section:
# For May be Cubic Latest and Some Python Libs for used Apps
apt-get install -y python3-icu python3-magic python3-pydbus python3-pyinotify python3-systemd python3-xdg python-oauth python-gi systemd-container binwalk gir1.2-gtksource-4 libgtksourceview-4-0

And this packages may be already exists on official (not modified) ubuntu isos.

Revision history for this message
Hasan Merkit (hasanmerkit) said :
#14

Thanks Cubic PPA, that solved my question.

Revision history for this message
Cubic PPA (cubic-wizard) said :
#15

Just an update for anyone else who comes across this question:

1. You should be using the recent version of Cubic.

2. Cubic installs all necessary dependencies when it is correctly installed from the PPA.

If you have modified your system and (accidentally) removed base packages required by the OS, Cubic (like other software) will not work.