nicolargo / glancesautoinstall Goto Github PK
View Code? Open in Web Editor NEWGlances Auto Install script
License: MIT License
Glances Auto Install script
License: MIT License
The script is not working on Ubuntu 20.04
[So Aug 02][14:52:00][root]@[nuc-mini-server]:[~]# curl -L https://bit.ly/glances | /bin/bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 167 100 167 0 0 521 0 --:--:-- --:--:-- --:--:-- 521
100 5081 100 5081 0 0 7353 0 --:--:-- --:--:-- --:--:-- 4961k
Detected system: Ubuntu
...
Es wurden 777 kB in 1 s geholt (633 kB/s).
Paketlisten werden gelesen... Fertig
W: --force-yes ist veraltet, verwenden Sie stattdessen eine der Optionen, die mit --allow beginnen.
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Hinweis: »python-dev-is-python2« wird an Stelle von »python-dev« gewählt.
W: --force-yes ist veraltet, verwenden Sie stattdessen eine der Optionen, die mit --allow beginnen.
E: Paket python-pip kann nicht gefunden werden.
If any of the do_with_root
argument itself contains a space, it will be re-tokenized (because of $*
).
Lines 12 to 15 in e2a5539
You should replace all the unquoted $*
s with "$@"
. (NOT the echo
one; it doesn't make sense)
It might be a good idea to shellcheck https://github.com/koalaman/shellcheck the script
I have been trying to build a Docker image for glances, but I get the following error:
W: --force-yes is deprecated, use one of the options starting with --allow instead.
Install dependancies
Collecting pip
Downloading https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl (1.3MB)
Installing collected packages: pip
Found existing installation: pip 8.1.1
Not uninstalling pip at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed pip-10.0.1
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
ImportError: cannot import name main
The command '/bin/sh -c curl -L https://raw.githubusercontent.com/nicolargo/glancesautoinstall/master/install.sh | /bin/bash && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 1
I've tried with Ubuntu Xenial and Bionic as base image. I've tried the develop and release/glances2 branches. Always the same error.
Dear support,
I tried to reinstall glances with the glancesautoinstall script (curl -L https://bit.ly/glances | /bin/bash) and got the following error:
`# curl -L https://bit.ly/glances | /bin/bash
.
.
.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Install dependencies
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.11/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.`
As far as I understand, you now need to change the way you install glances in a Debian-12 environment?
Very thanks for the support.
Describe the bug
In the installation/setup script are wrong package names called. So the simple install instruction from website don't work.
used command:
curl -L https://bit.ly/glances | /bin/bash
Error:
root@PiBox:~# curl -L https://bit.ly/glances | /bin/bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 167 100 167 0 0 662 0 --:--:-- --:--:-- --:--:-- 662
100 5144 100 5144 0 0 9473 0 --:--:-- --:--:-- --:--:-- 9473
Detected system: debian
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Hinweis: »python-dev-is-python2« wird an Stelle von »python-dev« gewählt.
Paket python-pip ist nicht verfügbar, wird aber von einem anderen Paket
referenziert. Das kann heißen, dass das Paket fehlt, dass es abgelöst
wurde oder nur aus einer anderen Quelle verfügbar ist.
Doch die folgenden Pakete ersetzen es:
python3-pip
E: Für Paket »python-pip« existiert kein Installationskandidat.
E: Paket python-docker kann nicht gefunden werden.
root@PiBox:~#
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Clean Setup
Desktop (please complete the following information):
Additional context
None
Source: nicolargo/glances#1448 (comment) (by @KenanSulayman)
The “Glances Auto Install script” as listed on the website should not install Homebrew without explicit warning and the website should explicitly mention that the automated installation will try install Homebrew on the host system.
I deeply abhor Homebrew and would have loved to be given a choice, and even better, had glances use my existing MacPorts installation.
Thanks
When installing glances via the install.sh script on a VPS hosted by Strato the installation fails with the following messages:
Server 1:
Detected system: strato
Server 2:
Detected system: plesk
The scripts seems to be unable to use the lsb_release
tool on the servers although it is installed. When using the workaround:
find /etc -type f -maxdepth 1 \( ! -wholename /etc/os-release ! -wholename /etc/lsb-release -wholename /etc/\*release -o -wholename /etc/\*version \) 2> /dev/null
it gets the following outputs:
/etc/strato-release /etc/debian_version
and
/etc/plesk-release /etc/debian_version /etc/strato-release
which result in the error that this is a unsupported system.
Ubuntu 14.04 LTS 64bit
Ubuntu 14.04 LTS 64bit + Plesk 12.5
As far as I can see that this issue is related to the way the distribution detection is done.
Maybe the script simply needs to be expanded with the values I stated above. I would create a pull request if that is the case. If further development would be needed, then I personally can't help.
If further information is needed I will provide it.
I appreciate any support!
install python packages with pip
as the superuser, using sudo
without using the -H
modifier, causes permissions issues in pip cache folder.
it was necessary, I run sudo chown -R $USER $HOME/.cache/pip/
to correct the permissions
Dear support,
I found that after in-place upgrading Debian-11.7 -> Debian-12.0 the glances binary no longer works:
# glances Traceback (most recent call last): File "/usr/local/bin/glances", line 5, in <module> from glances import main ModuleNotFoundError: No module named 'glances'
I want to hear the opinion of the community on this?
Very thanks for the support.
So following the autoinstall instructions i get this output. It fails saying that the script is not compliant with my system. How do i go about fixing this?
~/bin> sh ./install.sh
Detected system: openSUSE Leap
Sorry, GlancesAutoInstall script is not compliant with your system.
Please read: https://github.com/nicolargo/glances#installation
:~/bin> wget -O- https://bit.ly/glances | /bin/bash
--2017-10-12 21:45:51-- https://bit.ly/glances
Resolving bit.ly (bit.ly)... 67.199.248.10, 67.199.248.11
Connecting to bit.ly (bit.ly)|67.199.248.10|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://raw.githubusercontent.com/nicolargo/glancesautoinstall/master/install.sh [following]
--2017-10-12 21:45:52-- https://raw.githubusercontent.com/nicolargo/glancesautoinstall/master/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3611 (3.5K) [text/plain]
Saving to: ‘STDOUT’
100%[=========================================================================>] 3,611 --.-K/s in 0s
2017-10-12 21:45:53 (68.5 MB/s) - written to stdout [3611/3611]
Detected system: openSUSE Leap
Sorry, GlancesAutoInstall script is not compliant with your system.
Please read: https://github.com/nicolargo/glances#installation
At least in Ubuntu 16.04, upgrading system pip was not a very sensible action (required sudo apt-get purge python-pip && sudo apt-get install python-pip
to recover)
Line 137 in e2a5539
If your only goal is to avoid having some specific broken version, it might be nice to indicate so.
Hi,
I am trying to build your Dockerfile in order to get last version of glances, however the installation script is not compatible with latest ubuntu.
python-pip is not supported anymore, either you should use migrate to python3 (with python3-pip) or use the following to get it install : curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py
In the mean time, I will try to work on a Dockerfile to do it.
Thank you.
EDIT: I am doing a PR on your main repo with an updated Dockerfile. I let you have a look. Thanks again.
Hey guys,
i would love to see OS X Compability here.
A "pip install glances" on OS X Sierra worked just fine and glances started without any visible issues to me.
If you need any information to make this work, i will be giving them to you asap.
best regards,
ss89
Open by @ gavinengel (Glances issue nicolargo/glances#513)
Any thoughts on this? http://codepad.org/7XSooaT9
I wanted to throw out an improvement suggestion, which is to launch docker containers and set up a .travis.yml file to create a matrix of tests for each supported OS.
We could put in a flag or something to dump the output into a file and use that to verify the installation was successful.
Is there any reason why not using python3 by default (via pip3 on ubuntu) ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.