0 Mitglieder und 1 Gast betrachten dieses Thema.
...Wurde denn bei deinem LM19.3 Xfce vor dem Upgrade das installierte nvidia-prime Applet im Systray (Leiste) angezeigt?
So gesehen funktioniert die Umschaltung direkt aus nvidia-server-settings und auch aus dem Terminal.Wo ist das Problem oder gibt es bei LM20 kein nvidia-prime Leisten-Icon mehr?
Hoffe, es hilft dir :-)
kuehhe1@HP470:~$ apt install --reinstall python3-pipPaketlisten werden gelesen... FertigAbhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 0 nicht aktualisiert.Es müssen 230 kB an Archiven heruntergeladen werden.Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.Holen:1 http://mirror.netcologne.de/ubuntu focal/universe amd64 python3-pip all 20.0.2-5ubuntu1 [230 kB]Es wurden 230 kB in 0 s geholt (1.924 kB/s).(Lese Datenbank ... 347530 Dateien und Verzeichnisse sind derzeit installiert.)Vorbereitung zum Entpacken von .../python3-pip_20.0.2-5ubuntu1_all.deb ...Entpacken von python3-pip (20.0.2-5ubuntu1) über (20.0.2-5ubuntu1) ...python3-pip (20.0.2-5ubuntu1) wird eingerichtet ...Trigger für man-db (2.9.1-1) werden verarbeitet ...
pip3 install packagingRequirement already satisfied: packaging in ./.local/lib/python3.8/site-packages (20.4)Requirement already satisfied: pyparsing>=2.0.2 in ./.local/lib/python3.8/site-packages (from packaging) (2.4.7)Requirement already satisfied: six in /usr/lib/python3/dist-packages (from packaging) (1.14.0)
pip3 install --reinstall packaging
apt install --reinstall nvidia-prime-applet
/etc/xdg/autostart/nvidia-prime.desktop
[Desktop Entry]Name=Support for NVIDIA PrimeComment=Shows a tray icon when a compatible NVIDIA Optimus graphics card is detectedExec=/usr/lib/nvidia-prime-applet/nvidia-primeIcon=prime-tray-nvidiaTerminal=falseType=ApplicationCategories=GTK;GNOME;Settings;StartupNotify=false
/usr/lib/nvidia-prime-applet/nvidia-prime
/usr/share/nvidia-prime/prime-quirks
prime-select queryglxinfo | grep rendererinxi -G
Mit dem Paketinstaller pip3 (Python) kenne ich mich nicht aus, Wie kann ich das Paket packaging damit erneut installieren?
pip3 --help
pip3 --helpUsage: pip3 <command> [options]Commands: install Install packages. download Download packages. uninstall Uninstall packages. freeze Output installed packages in requirements format. list List installed packages. show Show information about installed packages. check Verify installed packages have compatible dependencies. config Manage local and global configuration. search Search PyPI for packages. wheel Build wheels from your requirements. hash Compute hashes of package archives. completion A helper command used for command completion. debug Show information useful for debugging. help Show help for commands.General Options: -h, --help Show help. --isolated Run pip in an isolated mode, ignoring environment variables and user configuration. -v, --verbose Give more output. Option is additive, and can be used up to 3 times. -V, --version Show version and exit. -q, --quiet Give less output. Option is additive, and can be used up to 3 times (corresponding to WARNING, ERROR, and CRITICAL logging levels). --log <path> Path to a verbose appending log. --proxy <proxy> Specify a proxy in the form [user:passwd@]proxy.server:port. --retries <retries> Maximum number of retries each connection should attempt (default 5 times). --timeout <sec> Set the socket timeout (default 15 seconds). --exists-action <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort. --trusted-host <hostname> Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS. --cert <path> Path to alternate CA bundle. --client-cert <path> Path to SSL client certificate, a single file containing the private key and the certificate in PEM format. --cache-dir <dir> Store the cache data in <dir>. --no-cache-dir Disable the cache. --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download. Implied with --no- index. --no-color Suppress colored output --no-python-version-warning Silence deprecation warnings for upcoming unsupported Pythons.
man pip3
man pip3 PIP(1) PIP(1)NAME pip - A tool for installing and managing Python packagesSYNOPSIS pip <command> [options] pip3 <command> [options]DESCRIPTION pip is a Python package installer, recommended for installing Python packages which are not available in the Debian archive. It can work with version control repositories (currently only Git, Mercurial, and Bazaar repositories), logs output extensively, and prevents partial installs by downloading all requirements before starting installation. On Debian, pip is the command to use when installing packages for Python 2, while pip3 is the command to use when installing packages for Python 3.COMMANDS The command comes before any options. The following commands are recognized: help Show help for commands. install Install packages. uninstall Uninstall packages. freeze Output installed packages in requirements format. list List installed packages. show Show information about installed packages. search Search PyPI for packages. wheel Build wheels from your requirements. Manual page pip3(1) line 1/204 15% (press h for help or q to quit)GENERAL OPTIONS This list is by no means complete, and it only describes options available to all commands. Use pip <command> --help for more details on command specific options. A few command options are provided below. -h, --help Show more detailed command help. -v, --verbose Give more output. Option is additive, and can be used up to 3 times. -V, --version Show version and exit. -q, --quiet Give less output. --log-file <path> Path to a verbose non-appending log, that only logs failures. This log is active by default at ~/.pip/pip.log. --log <path> Path to a verbose appending log. This log is inactive by default. --proxy <proxy> Specify a proxy in the form [user:passwd@]proxy.server:port. --timeout <sec> Set the socket timeout (default 15 seconds). --exists-action <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup. --cert <path> Path to alternate CA bundle.INSTALL OPTIONS pip install installs packages from: • PyPI (a.k.a. The Cheeseshop) and other indexes, using requirements specifiers. • VCS project urls. • Local project directories. • Local or remote source archives • Local wheel directories (python-pip-whl installs its wheels in /usr/share/ python-wheels and they can be locally installed by pip us‐ ing --find-links) -e,--editable <path/url> Install a project in editable mode (i.e. setuptools "develop mode") from a local project path or a VCS url. -r,--requirement <file> Install from the given requirements file. This option can be used multiple times. -b,--build <dir> Directory to unpack packages into and build in. The default in a virtualenv is "<venv path>/build". The default for global in‐ stalls is "<OS temp dir>/pip_build_<username>". -t,--target <dir> Install packages into <dir>. -d,--download <dir> Download packages into <dir> instead of installing them, regardless of what's already installed. --download-cache <dir> Cache downloaded packages in <dir>. --src <dir> Directory to check out editable projects into. The default in a virtualenv is "<venv path>/src". The default for global installs is "<current dir>/src". -U, --upgrade Upgrade all packages to the newest available version. This process is recursive regardless of whether a dependency is already sat‐ isfied. --force-reinstall When upgrading, reinstall all packages even if they are already up-to-date. -I, --ignore-installed Ignore the installed packages (reinstalling instead). --no-deps Don't install package dependencies. --install-option <options> Extra arguments to be supplied to the setup.py install command (use like --install-option ="--install-scripts=/usr/local/bin"). Use multiple --install-option options to pass multiple options to setup.py install. If you are using an option with a directory path, be sure to use absolute path. --global-option <options> Extra global options to be supplied to the setup.py call before the install command. --user Install using the user scheme. --egg Install packages as eggs, not 'flat', like pip normally does. This option is not about installing from eggs. (WARNING: Because this option overrides pip's normal install logic, requirements files may not behave as expected.) --root <dir> Install everything relative to this alternate root directory. --compile Compile py files to pyc. --no-compile Do not compile py files to pyc. --no-use-wheel Do not find and prefer wheel archives when searching indexes and find-links locations. --pre Include pre-release and development versions. By default, pip only finds stable versions. --no-clean Don't clean up build directories. Package Index Options: -i,--index-url <url> Base URL of Python Package Index (default https://pypi.python.org/simple/). --extra-index-url <url> Extra URLs of package indexes to use in addition to --index-url. --no-index Ignore package index (only looking at --find-links URLs instead). -f,--find-links <url> If a url or path to an html file, then parse for links to archives. If a local path or file:// url that's a directory, then look for archives in the directory listing. --allow-external <package> Allow the installation of externally hosted files --allow-all-external Allow the installation of all externally hosted files --allow-unverified <package> Allow the installation of insecure and unverifiable files --process-dependency-links Enable the processing of dependency links.UNINSTALL OPTIONS pip is able to uninstall most installed packages. Known exceptions are: • Pure distutils packages installed with python setup.py install, which leave behind no metadata to determine what files were installed. • Script wrappers installed by python setup.py develop. -r,--requirement <file> Uninstall all the packages listed in the given requirements file. This option can be used multiple times. -y, --yes Don't ask for confirmation of uninstall deletions.AUTHORS This manual page was originally written by Jeff Licquia <licquia@debian.org>, later rewritten by Carl Chenet <chaica@debian.org>. It was rewritten again and the source converted to reStructuredText by Barry Warsaw <barry@debian.org>. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, version 3 or any later version published by the Free Software Foundation.AUTHOR Barry Warsaw <barry@debian.org>1.5.6 2014-06-03 PIP(1) Manual page pip3(1) line 165/204 (END) (press h for help or q to quit)
--force-reinstall When upgrading, reinstall all packages even if they are already up-to-date.
pip3 install --force-reinstall packagingCollecting packaging Using cached packaging-20.4-py2.py3-none-any.whl (37 kB)Collecting pyparsing>=2.0.2 Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)Collecting six Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)ERROR: launchpadlib 1.10.13 requires testresources, which is not installed.Installing collected packages: pyparsing, six, packaging Attempting uninstall: pyparsing Found existing installation: pyparsing 2.4.7 Uninstalling pyparsing-2.4.7: Successfully uninstalled pyparsing-2.4.7 Attempting uninstall: packaging Found existing installation: packaging 20.4 Uninstalling packaging-20.4: Successfully uninstalled packaging-20.4Successfully installed packaging-20.4 pyparsing-2.4.7 six-1.15.0
ERROR: launchpadlib 1.10.13 requires testresources, which is not installed.
apt depends launchpadlibE: Keine Pakete gefundenapt rdepends launchpadlibE: Keine Pakete gefunden
dpkg -l | grep launchpadlibii python3-launchpadlib 1.10.13-1 all Launchpad web services client library (Python 3)
apt rdepends python3-launchpadlibpython3-launchpadlibReverse Depends: apport-retrace update-manager python3-update-manager python3-apport apport-retrace unity-scope-launchpad ubuntu-dev-tools silver-platter sbuild-launchpad-chroot python3-ubuntutools python3-oops-datedir-repo python3-breezy pkg-perl-tools lubuntu-desktop lptools brz-debian update-manager python3-update-manager python3-apportapt depends python3-launchpadlibpython3-launchpadlib Hängt ab von: python3-httplib2 Hängt ab von: python3-keyring Hängt ab von: python3-lazr.restfulclient Hängt ab von: python3-lazr.uri Hängt ab von: python3-simplejson Hängt ab von: python3-wadllib Hängt ab von: <python3:any> python3:i386 python3 Schlägt vor: python3-pkg-resources Schlägt vor: python3-testresourcesapt depends python3-testresourcespython3-testresources Hängt ab von: python3-pbr Hängt ab von: python3-unittest2 Hängt ab von: <python3:any> python3:i386 python3apt rdepends python3-testresourcespython3-testresourcesReverse Depends: python3-oslo.db python3-launchpadlib
apt install python3-testresourcesPaketlisten werden gelesen... FertigAbhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig0 aktualisiert, 1 neu installiert, 0 erneut installiert, 0 zu entfernen und 0 nicht aktualisiert.Inst python3-testresources [2.0.0-3] (2.0.0-3 Ubuntu:20.04/focal [all])Conf python3-testresources (2.0.0-3 Ubuntu:20.04/focal [all])
pip3 install --force-reinstall packagingCollecting packaging Using cached packaging-20.4-py2.py3-none-any.whl (37 kB)Collecting pyparsing>=2.0.2 Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)Collecting six Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)Installing collected packages: pyparsing, six, packaging Attempting uninstall: pyparsing Found existing installation: pyparsing 2.4.7 Uninstalling pyparsing-2.4.7: Successfully uninstalled pyparsing-2.4.7 Attempting uninstall: six Found existing installation: six 1.15.0 Uninstalling six-1.15.0: Successfully uninstalled six-1.15.0 Attempting uninstall: packaging Found existing installation: packaging 20.4 Uninstalling packaging-20.4: Successfully uninstalled packaging-20.4Successfully installed packaging-20.4 pyparsing-2.4.7 six-1.15.0