Overtime I’ve managed to install various versions of Lua, but not being the best at all thing Debian/pi, and after using Lua rocks to install the Lua file system (lfs) module I’ve got more versions (somewhere in my system) that I can shake a stick at.
What can I do to completely remove Lua and start again, this time ensuring is have the lfs module ?
Currently everything I do to try and uninstall/ remove comes to a dead end - usually with the virtual package message..
pi#raspberrypi:~ $ lua -v
Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Ri0
pi#raspberrypi:~ $ sudo apt-cache depends lua
<lua>
pi#raspberrypi:~ $ sudo apt-get purge lua
Reading package lists... Done
Building dependency tree
Reading state information... Done
Virtual packages like 'lua' can't be removed
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
pi#raspberrypi:~ $ sudo apt-get remove lua
Reading package lists... Done
Building dependency tree
Reading state information... Done
Virtual packages like 'lua' can't be removed
0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.
pi#raspberrypi:~ $ luarocks --version
/usr/bin/luarocks 2.2.0
LuaRocks main command-line interface
Many of your apt packages are going to run into complications of system components relying on those being there. They hardly take up any space anyway, just a couple meg. Ones you can safely remove will be listed under:
apt list lua-* | grep installed
If you've installed supplemental versions with luaver, then it's
luaver list
==> Installed versions: (currently 5.3.5)
5.1.5
5.3.5
5.4.0
5.2.4
luaver uninstall 5.4.0
so on and so forth, until all the unnecessary vers are off your system. Alternatively, you could delete your entire ~/.luaver/ directory, and all of those extra versions would be gone in one go. Then you'd have to reinstall luaver and continue from that point.
Related
I installed opencv-python and opencv-python-contrib
after i installed them I realized I wasn't supposed to
How do I uninstall it
Also, which one should I keep, to do facial recongnition with raspberry pi
Import cv2 didn't work when I tried to run a python file, I don't know why it is happening!
If you are using armbian or raspbian, you can uninstall packages with apt:
apt uninstall opencv-python opencv-python-contrib
I suggest that if you want to completely uninstall and remove configuration files use purge:
apt purge opencv-python opencv-python-contrib
and aftter that, you can uninstall packages that came with opencv:
apt autoremove --purge
If you need Extra modules: just keep opencv-python-contrib
Extra modules https://docs.opencv.org/4.x/index.html
pypi.org https://pypi.org/project/opencv-contrib-python/
Installation and Usage
If you have previous/other manually installed (= not installed via pip) version of OpenCV installed (e.g. cv2 module in the root of Python's site-packages), remove it before installation to avoid conflicts.
Make sure that your pip version is up-to-date (19.3 is the minimum supported version): pip install --upgrade pip. Check version with pip -V. For example Linux distributions ship usually with very old pip versions which cause a lot of unexpected problems especially with the manylinux format.
Select the correct package for your environment:
There are four different packages (see options 1, 2, 3 and 4 below) and you should SELECT ONLY ONE OF THEM. Do not install multiple different packages in the same environment. There is no plugin architecture: all the packages use the same namespace (cv2). If you installed multiple different packages in the same environment, uninstall them all with pip uninstall and reinstall only one package.
a. Packages for standard desktop environments (Windows, macOS, almost any GNU/Linux distribution)
Option 1 - Main modules package: pip install opencv-python
Option 2 - Full package (contains both main modules and contrib/extra modules): pip install opencv-contrib-python (check contrib/extra modules listing from OpenCV documentation)
b. Packages for server (headless) environments (such as Docker, cloud environments etc.), no GUI library dependencies
These packages are smaller than the two other packages above because they do not contain any GUI functionality (not compiled with Qt / other GUI components). This means that the packages avoid a heavy dependency chain to X11 libraries and you will have for example smaller Docker images as a result. You should always use these packages if you do not use cv2.imshow et al. or you are using some other package (such as PyQt) than OpenCV to create your GUI.
Option 3 - Headless main modules package: pip install opencv-python-headless
Option 4 - Headless full package (contains both main modules and contrib/extra modules): pip install opencv-contrib-python-headless (check contrib/extra modules listing from OpenCV documentation)
I installed TeX Live following the guide on their website using the install-tl script two times. Before the second install I followed the pre-install instructions on that same website, and before any installation I removed the 2017 version that had been installed through Debian repositories.
I need a version of TeX Live >2019. I assumed the install script would install the newest version, but apparently that's not the case, since:
$ tlmgr --version
tlmgr revision 49885 (2019-01-31 20:27:00 +0100)
tlmgr using installation: /usr/share/texlive
TeX Live (http://tug.org/texlive) version 2018
However, my TeX Live installation is in ./usr/local/texlive/2021. There is no other directory with a year name in ./usr/local/texlive/.
I'm really running out of ideas, but I do need a newer version of TeX Live. I'm on Debian 10.
I followed samcarter_is_at_topanswers.xyz advice, but had to find the correct directory for my tlmgr executable. I found that through
$ sudo find -iname 'tlmgr'
.. invoked at the root directory. Running
$ /usr/local/texlive/2021/bin/x86_64-darwinlegacy/tlmgr --version
returned the newest version. However, that path was already set as described on the TeX Live page. For it to work, I deleted more directories that had been included in the 2018 installation version of TeX Live. I found those through
$ sudo find -iname '*texlive*'
invoked at the root directory. Then
$ tlmgr --version
returned the correct version.
Also, don't install TeX Live in /usr/local. Install it in your home directory.
Pardon my English.
I am trying to install Erlang 23 on a SUSE Linux Enterprise Server Version 12 Patch 3 which is not connected to Internet so I cannot use zypper or wget and have to install it manually using binary.
I get the below errors :
erlang-epmd is needed by erlang-23.0.2-1.2.x86_64 when installing erlang.
erlang = 23.0.2 is needed by erlang-epmd-23.0.2-1.2.x86_64 when installing erlang-empd.
How to resolve this circular dependency?
You can install codependent RPMs by putting them together in the same command, e.g.:
rpm -iv erlang-23.0.2-1.2.x86_64.rpm erlang-epmd-23.0.2-1.2.x86_64.rpm
I tried following this guide to install ROS, but even after adding ROS source.list and its key
sudo apt install ros-melodic-desktop-full
gave error.
E: Unable to locate package ros-melodic-desktop-full
Then I ran this command
sudo apt search ros
to see if any such package exists. I couldn't find ros-melodic-desktop-full but I found another similar package ros-desktop-full.
So I installed it instead. The installation went smooth without giving any errors.
Next step in the guide is to set-up ROS environment variable, but I have no such directory
/opt/ros
So how do I setup the environment variable?
P.S.
I also installed some tools and dependencies with this command
sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential
and initialized rosdep
sudo rosdep init
rosdep update
The ros-desktop-full package you installed is part of the official Ubuntu release.
ROS Melodic (and in the future, Noetic) is published by the OSRF in a separate repository (packages.ros.org). These packages install to /opt/ros/. However, some ROS packages have also been ported to Debian, which is how they found their way to Ubuntu (which derives from Debian).
The Debian packages are fully functional, but they do not install to /opt/ros. Instead, everything is integrated in the operating system itself. This means that you need to set up your personal workspace slightly differently.
Given that most tutorials assume that you use the OSRF packages, I suggest you either wait for the Noetic release (scheduled for the end of May 2020), then install ros-noetic-desktop-full, or downgrade to Ubuntu 18.04 LTS to use ROS Melodic.
From the documentation here, melodic is only supported on Ubuntu 18.04. The ROS version targeting Focal (20.04) is Noetic, but that one has not been released yet (see Distributions). I'm not sure what ROS version Ubuntu packages (the ros-desktop-full one you installed), but I was not successful in using it.
If you really do want to use Ubuntu 20.04, then I think your best option currently is to compile from source. Last time I checked the precompiled debs for Noetic are not yet available at http://packages.ros.org/ros/ubuntu (you can track release progress at github issue 21513). No idea if compiling Noetic from source is easy or hard, but I was able to compile ROS2 foxy from source without too much trouble though.
I am installing Grails on Ubuntu 12.10, using the instructions here, but an getting an error on the 3rd step, as outlines below.
sudo add-apt-repository ppa:groovy-dev/grails
sudo apt-get update
sudo apt-get install grails-ppa
The error I get is shown below. I have the Sun JDK installed, and JAVA_HOME is set, and JAVA_HOME/bin is on the path.
Can someone suggest things to try to resolve this?
/home/edgecase> $ sudo apt-get install grails-ppa
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:
default-jre-headless:i386 : Depends: openjdk-7-jre-headless:i386 (>= 7~u3-2.1) but it is not going to be installed
openjdk-7-jre:i386 : Depends: openjdk-7-jre-headless:i386 (= 7u7-2.3.2a-1ubuntu1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
/home/edgecase> $ java -version
java version "1.6.0_39"
Java(TM) SE Runtime Environment (build 1.6.0_39-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01, mixed mode)
We need to remove those instructions from the site since the PPA isn't being maintained. Use http://gvmtool.net/ instead.
YES please remove the PPA instructions with GVM, I wasted a lot of time before I found this