nextcloud / vm

💻☁📦 The Nextcloud VM (virtual machine appliance), Home/SME Server and scripts for RPi (4). Community developed and maintained.
https://download.nextcloudvm.com
GNU General Public License v3.0
1.32k stars 663 forks source link

Nextcloud VM fresh install Locate Mirror script broken #2666

Closed aaaskew closed 2 months ago

aaaskew commented 2 months ago

Steps To Reproduce

  1. Fresh install from OVA version 29.0.1 HUB 8
  2. Select change Keyboard, Timezone & Mirror
  3. Mirror change missing PHP dependancies so script ends without changing mirror

Expected Result

Fastest mirror chosen

Actual Result

Mirror not changed from the default SE mirror

Screenshots, Videos, or Pastebins

No response

Additional Context

The PHP missing package/dependancy flashed by during install. Could rollback to snapshot taken before install to re-test but not sure where output of mirror setting script is logged.

Build Version

29.0.1 HUB 8

Environment

By downloading the VM

Environment Details

No response

aaaskew commented 2 months ago

Actually there are 2 issues:

  1. python3-distutils is not available

root@nextcloud:~# bash /var/scripts/menu.sh Running the main menu script... Testing if network is OK... Checking connection to github.com... Downloading the Startup Configuration Menu... Downloading the Locate Mirror script... Locating the best mirrors... [⣾⣽⣻⣾⣽⣻] Reading package lists... Done Building dependency tree... Done Reading state information... Done Package python3-distutils is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'python3-distutils' has no installation candidate error: externally-managed-environment

× This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. /var/scripts/locate_mirror.sh: line 47: pip: command not found /var/scripts/lib.sh: line 1191: apt-select: command not found Sorry but something went wrong. Please report this issue to https://github.com/nextcloud/vm/issues and include the output of the error message. Thank you! apt-select -m up-to-date -t 4 -c -C gb failed Posting notification to users that are admins, this might take a while... Sending 'Sorry but something went wrong. Please report this issue to https://github.com/nextcloud/vm/issues and include the output of the error message. Thank you!' to xxx Posting 'Sorry but something went wrong. Please report this issue to https://github.com/nextcloud/vm/issues and include the output of the error message. Thank you!' to: ncwebadmin

  1. If re-running the script from menu.sh, it shows the following if you are using docker images:

Your current server repository is: https://download.docker.com/linux/ubuntu

This is not right, only the Ubuntu mirror should be being tested for change.

enoch85 commented 2 months ago

I'll have a look! Thanks for reporting.

enoch85 commented 2 months ago

Fixed!