canonical / multipass

Multipass orchestrates virtual Ubuntu instances
https://multipass.run
GNU General Public License v3.0
7.51k stars 632 forks source link

Installing a GIU not working (default drives too small (Mac) #3512

Closed Jan-X closed 3 days ago

Jan-X commented 2 months ago

Describe the bug Describe what your problem is. I just wanted to install a GUI to better see why Thunderbolt is not working with Multipass (and how to get NVIDIA iGPU on a Macbook M3 Pro

To Reproduce How, and what happened?

Fresly install multipass on a Mac ( Install a graphical interface with sudo apt install ubuntu-desktop xrdp (just following https://multipass.run/docs/set-up-a-graphical-interface)

Expected behavior What did you expect to happen? it should just work on a free install (increase your initial disk space from initial Multipass install have a self inflating drive

Logs Please provide logs from the daemon, see accessing logs on where to find them on your platform. ubuntu@primary:~$ sudo apt install ubuntu-desktop xrdp Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed:

... List of installed packages

0 upgraded, 1046 newly installed, 0 to remove and 0 not upgraded. Need to get 653 MB of archives. After this operation, 2342 MB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://ports.ubuntu.com/ubuntu-ports noble/main arm64 libasound2-data all 1.2.11-1build2 [21.0 kB] Get:2 http://ports.ubuntu.com/ubuntu-ports noble/main arm64 libasound2t64 arm64 1.2.11-1build2 [387 kB]

... List of packages

Get:1045 http://ports.ubuntu.com/ubuntu-ports noble/main arm64 xbrlapi arm64 6.6-4ubuntu5 [87.0 kB]
Get:1046 http://ports.ubuntu.com/ubuntu-ports noble/main arm64 xserver-xorg-legacy arm64 2:21.1.12-1ubuntu1 [40.1 kB] Fetched 653 MB in 1min 23s (7829 kB/s)
Extracting templates from packages: 100% Preconfiguring packages ... Selecting previously unselected package libasound2-data. (Reading database ... 69508 files and directories currently installed.) Preparing to unpack .../0000-libasound2-data_1.2.11-1build2_all.deb ... ... list of installs....

dpkg: error processing archive /tmp/apt-dpkg-install-lGBnh9/0366-evolution-data-server_3.52.0-1build3_arm64.deb (--unpack): cannot copy extracted data for './usr/libexec/evolution-addressbook-factory' to '/usr/libexec/evolution-addressbook-factory.dpkg-new': failed to write (No space left on device) No apport report written because the error message indicates a disk full error dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Selecting previously unselected package unzip. Preparing to unpack .../0367-unzip_6.0-28ubuntu4_arm64.deb ... Unpacking unzip (6.0-28ubuntu4) ...

...another List.....

                                                          Selecting previously unselected package libdebuginfod1t64:arm64.

Preparing to unpack .../0383-libdebuginfod1t64_0.190-1.1build4_arm64.deb ... Unpacking libdebuginfod1t64:arm64 (0.190-1.1build4) ... dpkg: error processing archive /tmp/apt-dpkg-install-lGBnh9/0383-libdebuginfod1t64_0.190-1.1build4_arm64.deb (--unpack): cannot copy extracted data for './usr/lib/aarch64-linux-gnu/libdebuginfod-0.190.so' to '/usr/lib/aarch64-linux-gnu/libdebuginfod-0.190.so.dpkg-new': failed to write (No space left on device) No apport report written because MaxReports is reached already Selecting previously unselected package libsource-highlight-common. Preparing to unpack .../0384-libsource-highlight-common_3.1.9-4.3build1_all.deb ... dpkg: unrecoverable fatal error, aborting: unable to flush /var/lib/dpkg/updates/tmp.i after padding: No space left on device needrestart is being skipped since dpkg has failed E: Sub-process /usr/bin/dpkg returned an error code (2)

Additional info

Additional context Add any other context about the problem here.

georgeliao commented 2 months ago

Hi @Jan-X Thanks for reporting this.

cannot copy extracted data for './usr/libexec/evolution-addressbook-factory' to '/usr/libexec/evolution-addressbook-factory.dpkg-new': failed to write (No space left on device)

This message suggests disk space is used up. Did you allocate enough space for the primary instance? You can also launch an instance with the custom disk space and RAM, see https://multipass.run/docs/create-an-instance#heading--create-an-instance-with-custom-cpu-number-disk-and-ram.

Jan-X commented 2 months ago

I understand what is going wrong & that the drive is too small.

This is just a new user experience - so it might make sense to add some documentation to the Multipass HowTo website to make things easier for newcomer.

Next would be, that (Unstalling script on a Mac should stop Multipass app - responsible for tray icon.

It works for uninstalling but is still in the tray, trying to quit it results in a hang even preventing you from restarting. (yes, you could force kill it, but this can - if wanted - to make things easier.....)

Just my two cents,.....

georgeliao commented 2 months ago

@Jan-X

I understand what is going wrong & that the drive is too small.

Sorry, I only glanced over your report and did not catch the main message. Documenting it better definitely can make things easier for new users. Thanks for the advice.

Next would be, that (Unstalling script on a Mac should stop Multipass app - responsible for tray icon.

Thanks for pointing this out, it definitely can be improved later on.

townsend2010 commented 2 months ago

Hey @georgeliao!

Could you please update the state of this issue and what action we need to take to address this? Thanks!

ricab commented 3 days ago

Closing for lack of activity.