Can't install libnuma-dev on raspbian - raspbian

sudo apt-get install libnuma-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libnuma-dev
This is problem what I have.
I tried sudo apt-get update and sudo apt-get upgrade already.
Here is my source.list
cat /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
#Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
My device is 'raspberry pi 3 B+' and OS is raspbian9.

My device is raspberry pi CM3 lite and OS is raspbian 9 too. I encountered this problem when I want to compile the rt-tests tools from source code. But I successfully compiled the tools without install "libnuma-dev" library. Hope it helps for you and any other one who maybe want to compile the rt-tests tools acoording to the official wiki.

Related

how to install python-gtk2 debian arm64 on kali?

I downloaded amd64 but it doesn't work for my system and I can't find how to download arm64
And then how to start Zenmap?
I am using mac air m2
And I'm trying to use Zenmap on Kali Linux.
So I
apt search zenmap
sudo apt install zenmap. -y
zenmap start
I entered the commands in order
And got the error below
Could not import the zenmapGUI.App module: 'No module named gtk'
If you installed Zenmap in another directory, you may have to add the modules directory to the PYTHONPATH enviroment variable.
So I entered the command below to download python-gtk2 debian
sudo apt update
sudo apt-get install alien dpkg-dev debhelper build-essential
wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
chmod 777 python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
dpkg -I python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
I ran the last command above and got an error
The architecture of the package (amd64) does not match the system (arm64)
I got the error above, so I tried changing amd to arm, but it didn't connect.
How to download arm64 package?
Yes, it means that you need to find an arm package of the python-gtk.
I'm here with the same issue. M1 chip, Parrot in a VM and trying to get zenmap to work. :(

how to upgrade jetpack

I'm using Jetson TX2.
Current jetpack version : 4.5-b129
I was following update tutorial from nvidia website (https://docs.nvidia.com/jetson/jetpack/install-jetpack/index.html).
I did:
sudo apt update
sudo apt dist-upgrade
sudo apt install --fix-broken -o Dpkg::Options::="--force-overwrite"
Last command feedback:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
activity-log-manager libgeonames-common libgeonames0
libnm-gtk0 libtimezonemap-data libtimezonemap1
libunity-control-center1 vulkan-utils
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I'm using sudo apt-cache show nvidia-jetpack to check jetpack version and it's still the same (4.5-b129)
Ok, there was note, that I thought is only for 5.0.X users:
To upgrade from JetPack 5.0/5.0.1 Developer Preview, first edit etc/apt/sources.list.d/nvidia-l4t-apt-source.list
I edited nvidia-l4t-apt-source.list file from:
deb https://repo.download.nvidia.com/jetson/common r31.5 main
deb https://repo.download.nvidia.com/jetson/t186 r31.5 main
to:
deb https://repo.download.nvidia.com/jetson/common r32.7 main
deb https://repo.download.nvidia.com/jetson/t186 r32.7 main
and it upgraded my Jetpack to 4.6.1. Unfortunately nvidia does not support Jetpack 5.X.X on TX2 series

How to automount usb after kiosk mode enable in raspberry Pi 4 with buster os?

Problem with Kiosk mode and USB access.
I have installed buster on raspberry Pi 4. And for open chromiam browser at startup, I enabled kiosk mode.
Now I have a problem that, it does not mount USB device (flash drives) at /media/pi
Any help and suggestions would be very helpful!
Raspbian Buster lite (without GUI) doesn't mount USB devices automatically out of the box.
There is a software called "usbmount" which adds this functionality.
You can install it using
sudo apt-get install usbmount
Then reboot the Pi
sudo reboot now
http://www.howtoeverything.net/linux/raspberry-pi/automount-external-hard-disks-raspberry-pi
I'm using Buster Lite and ran into a problem with installing usbmount. The error I got was "unable to locate package usbmount". I found the solution, and I am append my solution to this thread since this thread shows up on some search-engines pretty high up.
The solution I used was to clone the github repo from https://github.com/rbrito/usbmount/ and build it (instructions below is partially from the readme)
git clone https://github.com/rbrito/usbmount.git
cd usbmount
sudo apt-get update && sudo apt-get install -y debhelper build-essential exfat-fuse exfat-utils
sudo dpkg-buildpackage -us -uc -b
cd ..
sudo dpkg -i usbmount_0.0.24_all.deb
Additionally, use
sudo nano /etc/usbmount/usbmount.conf
to add exfat to the list of file-systems
save and reboot

cuda install error on Ubuntu 17.04

abigail#abilina:~/Downloads$ sudo dpkg -i cuda-repo-ubuntu1604_8.0.61-1_amd64.deb
Selecting previously unselected package cuda-repo-ubuntu1604.
(Reading database ... 205999 files and directories currently installed.)
Preparing to unpack cuda-repo-ubuntu1604_8.0.61-1_amd64.deb ...
Unpacking cuda-repo-ubuntu1604 (8.0.61-1) ...
Setting up cuda-repo-ubuntu1604 (8.0.61-1) ...
Warning: The postinst maintainerscript of the package cuda-repo-ubuntu1604
Warning: seems to use apt-key (provided by apt) without depending on gnupg or gnupg2.
Warning: This will BREAK in the future and should be fixed by the package maintainer(s).
Note: Check first if apt-key functionality is needed at all - it probably isn't!
Warning: apt-key should not be used in scripts (called from postinst maintainerscript of the package cuda-repo-ubuntu1604)
OK
abigail#abilina:~/Downloads$ sudo apt-get install cuda
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:
cuda : Depends: cuda-8-0 (>= 8.0.61) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
My ubuntu version is 17.04. Does this mean my Linux currently can't install CUDA? I want to install TensorFlow with GPU support.
Per suggestion:
abigail#abilina:~/Downloads$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
https://launchpad.net/ubuntu/zesty/amd64/nvidia-cuda-toolkit
above is the correct one.
apt-get install nvidia-cuda-toolkit
but remember the cuda installed through apt were installed in different location. manually create ln -s at /usr/local/cuda for include,lib64,and bin
I have successfully installed CUDA 8.0 + the latest patch from NVIDIA on Ubuntu 17.04:
Download the .run file from https://developer.nvidia.com/cuda-downloads, choosing Ubuntu 16.04 (Base Installer)
You will not be able to install it by just running, because it is looking for a file called InstallUtils.pm which is not present in Ubuntu 17.04, but curiously, is present in the .run file - so: unpack the .run file using ./cuda*.run --tar mxvf
copy InstallUtils.pm (should be in the /bin path) to /usr/lib/x86_64-linux-gnu/perl-base
Run the installer (You may want to say no to the driver install step to keep the one you install through apt - I'm using 381.22, because 375.26, which is provided by the .run file does not support my 1080ti)
gcc 6 is incompatible with CUDA, but this is easily remedied for compiling the sample files: just add export EXTRA_NVCCFLAGS="-Xcompiler -std=c++98" to your bashrc file, and comment out
from one of the headers (I think it was host_config.h, but you'll see it once you try to compile) - comment out these lines:
#if __GNUC__ > 5 || (__GNUC__ == 5 && __GNUC_MINOR__ > 3)
#error -- unsupported GNU version! gcc versions later than 5.3 are not supported!
This is all from memory, so hopefully it's accurate enough.
I managed to find this solution thanks to these useful posts:
https://devtalk.nvidia.com/default/topic/983777/can-t-locate-installutils-pm-in-inc/
https://devtalk.nvidia.com/default/topic/949770/cuda-8-0rc-supporting-gcc6-/
For ubuntu 17.04, I had to use cuda 9.0 (deb version)
https://developer.nvidia.com/cuda-release-candidate-download
I couldn't get it to work otherwise. Cuda 8.0 needs gcc 5.3.1 but cuda 9.0 is compatible with gcc 6.3.0 which is installed on ubuntu 17.04 automatically.
More precisely, this is what I did:
On Ubuntu 17.04, install CUDA 9.0 — you can currently download the beta version 
https://developer.nvidia.com/cuda-release-candidate-download
I downloaded the .deb file and haven’t had any problems — follow the steps they recommend when you download cuda 9.0 
sudo dpkg -i cuda-repo-ubuntu1704-9-0-local-rc_9.0.103-1_amd64.deb
sudo apt-key add /var/cuda-repo-9.0-local-rc/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda
Then follow the post installation steps from the nvidia instructions (i.e., setting PATH and LD_LIBRARY_PATH) 
 http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#post-installation-actions)
export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64 ${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
Cuda 9 is compatible with gcc 6.3.0 (which comes with 17.04). I used arch=sm_52 and sometimes for my make files have to go ‘make clean’.
Installing Cuda 9.0 was the simplest solution in my case.
Alternatively, if you'd prefer cuda 8, you can download the deb file and then use the command
dpkg-deb -x cuda_8.*.deb /usr/local/cuda-8.0
to extract the contents from the deb file and have them placed in the desired directory.
Source: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#advanced-setup)

Unable to install kernel source in kali Debian OS

I have some issue my OS and I don't know how to handle, I have googled allot but no success, here is my problem.
I want to install Linux headers in my Kali Debian OS. I have used following commands,
$ apt-get install linux-headers-$(uname -r)
it's output,
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:
linux-headers-3.18.0-kali3-amd64 : Depends: gcc-4.7 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
After I have entered following command,
$ apt-get install gcc-4.7
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:
gcc-4.7 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not going to be installed
Depends: cpp-4.7 (= 4.7.2-5) but it is not going to be installed
Depends: libitm1 (>= 4.7.2-5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I have tried some other commands as well, including following commands,
sudo apt-get -f install
sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get -u dist-upgrade
sudo apt-get -o Debug::pkgProblemResolver=yes dist-upgrade
As well as following aptitude command,
sudo aptitude install linux-headers-$(uname -r)
my system information,
$ cat /proc/version
Linux version 3.18.0-kali3-amd64 (debian-kernel#lists.debian.org) (gcc version 4.7.2 (Debian 4.7.2-5) ) #1 SMP Debian 3.18.6-1~kali2 (2015-03-02)
$ uname -mrs
Linux 3.18.0-kali3-amd64 x86_64
$ lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux Kali Linux 2.0~alpha1
Release: Kali Linux 2.0~alpha1
Codename: n/a
Please guide me what's going wrong Why I am stuck with this issue, thanks.
I share what I found and works for me.
My version:
# lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux Kali Linux 1.1.0
Release: 1.1.0
Codename: moto
My source list (/etc/apt/sources.list):
# Line commented out by installer because it failed to verify:
deb http://security.kali.org/ kali/updates main contrib non-free
# Line commented out by installer because it failed to verify:
deb-src http://security.kali.org/ kali/updates main contrib non-free
## Regular repositories
deb http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
## Source repositories
deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
and does the following:
# apt-get clean
# apt-get update
# apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
linux-headers-3.18.0-kali3-common linux-kbuild-3.18
The following NEW packages will be installed:
linux-headers-3.18.0-kali3-amd64 linux-headers-3.18.0-kali3-common linux-kbuild-3.18
0 upgraded, 3 newly installed, 0 to remove and 112 not upgraded.
Need to get 5,269 kB of archives.
After this operation, 34.7 MB of additional disk space will be used.
Do you want to continue [Y/n]?
I comment you that I had that problem because I realize mistakenly "distribution upgrade" to alpha version of Kali.
Hope this help.