Location of GCC binary in installing VM tools [closed] - gcc

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I am trying to install VM tools in Debian linux which is having trouble finding the gcc binaries. I am trying to install the binaries, as shown in selected answer on this page:
installing vmware tools: location of GCC binary?
However, in these commands:
sudo aptitude install gcc-4.7 make linux-headers-`uname -r` -y
sudo apt-get install build-essential
sudo apt-get install gcc-4.7 linux-headers-`uname -r`
the system is asking me to insert the Official amd64 binary in the CDROM and then press enter.
My debian in running on a VM over windows. Not sure where to get this thing and fix this problem. Please advise.

Debian uses apt to install packages. (apt-get or aptitude are front-ends to the apt systems).
whenever you ask the system to install a given package, it will first need the actual package files. now apt can fetch the requested packages from a number of different places, including read-only media (like CDROMs or DVDs) or the internet (via http or ftp).
these "places" can be configured in the /etc/apt/sources.list file.
if you have installed Debian from the set of CDROMs, then your sources.list will tell apt, that it can get package files from the cdrom-drive. obviously you need to have the correct CDROM inserted in your drive.
on a virtual machine, you will find that you can use ISO-images of the files and tell your virtualization software (vmware) to make a given ISO available to the client.
however, the usual way is to add an "internet ressource" to sources.list, so you don't need to juggle with CDROM (images) and you will always get any bugfixes. obviously your machine will need to be online for this to work.
add an official online debian repository to your sources. the following uses http://http.debian.net which should automatically use a mirror that is physically close to your machine:
echo "deb http://http.debian.net/debian $(lsb_release -c | awk '{print $2}') main" | sudo tee -a /etc/apt/sources.list
then update the cache
sudo aptitude update
and install the required package(s)
sudo aptitude install build-essential

Related

How to install Wine on Chrome os to run Windows programs? [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 days ago.
Improve this question
I don't know how to make Wine run an specific Windows program (Visualg) through Chrome os' Linux terminal command line. I used these commands below, but I can't figure out what to do after this. I'm a noob and the program is a beginner's coding platform... I did this as Winehq advised.
sudo dpkg --add-architecture i386
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bullseye/winehq-bullseye.sources
sudo apt update
sudo apt install --install-recommends winehq-stable
Winehq advised to check if the building dependencies are all there and to 'change directory' to then run my program with 'filename.exe'.
cd (filename)
filename.exe
Although it is not working on my Linux terminal command line unfortunately. LInux terminal displays:
No such file or directory
Command not found
Here's how to run the Windows program:
wine <hoge.exe>
The sample below runs cmd.exe.

Ubuntu apt dist-upgrade failing due to "/var/lib/dkms/nvidia-fs/2.14.12/source/dkms.conf does not exist" [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 days ago.
Improve this question
I unfortunately found out during a boot that apt had failed to setup boot for an updated kernel correctly.
When I ran sudo apt dist-upgrade I found it was broken..
I have a manually installed the latest Nvidia GPUdirect/CUDA environment because of how old the official Ubuntu packages are. Obviously the install is now causing problems.
Things I tried:
I tried to find where you could "uninstall nvidia-fs". Couldn't find it on any documentation.
I tried to re-install nvidia-fs using the cuda.run installer. The didn't work successfully.
I traced out the scripts, and found a sizable script program that was called /usr/sbin/dkms, that had a "remove" flag.
ran the following command:
sudo dkms remove -m nvidia-fs -v 2.14.12
and then sudo apt dist-upgrade.
This repaired the kernel install. On to fixing the nvidia-fs install.

problem in installing ansible on CentOS-8.5.2111-x86_64 [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 months ago.
Improve this question
I need to install ansible on CentOS-8.5.2111-x86_64 but i have an error
[root#ansible3 ~]# yum install ansible
Last metadata expiration check: 0:01:56 ago on Wed 07 Dec 2022 02:42:20 PM EET.
Error:
Problem: conflicting requests
- nothing provides python3.9dist(ansible-core) needed by ansible-6.3.0-1.el8.noarch
- nothing provides (python3.9dist(ansible-core) >= 2.13.3 with python3.9dist(ansible-core) < 2.14) needed by ansible-6.3.0-1.el8.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
the steps i have done
first installed epel release by command [yum install -y epel-release]
then install python3 by yum install python3
and then trying to install ansible by the above command and the error is attached
If you execute command python3, what Python version does the prompt return?
Higher Ansible versions require Python3.9+. CentOS 8 is usually packed w a lower python version.
You can try to install it by locating where python3.9 is actually installed on the machine, and then install it via the pip3 module.
Try:
yum install python3-pip -y
python3 -m pip install ansible
It might install a lower version of Ansible.

How can I use a list of packages to determine whether or not I need to do apt-get update on Ubuntu 20.10? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am writing a numerous shell scripts, which depends on specific packages.
For example one of my scripts depends on ca-certificates and wget. If I have not yet run apt-get -y update, then I get the following errors:
Package ca-certificates 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 'ca-certificates' has no installation candidate
E: Unable to locate package wget
I want to avoid running apt-get -y update on every script. Basically, I want to create a shortcut function which will do the following two things:
Run apt-get -y update only when necessary.
Install only the packages which are not installed/latest.
Here is my current function so far:
function install-packages()
{
apt-get -y update
apt-get install -y --no-install-recommends $#
}
install-packages ca-certificates wget
To check if package is installed or not do something like
dpkg -l | grep vlc | awk '{print $2}'
and to check if the package is available with apt and for apt-get search for similar option. It exist but I do not remember anyway all new distro use apt
apt list --upgradable | awk '{print $1}'
compare each row(package name) from above output to the package you are targeting in your script.
Your try to run apt update only when necessary is challenging. One thing is to run apt update when apt generate error which will solve the problem like you mentioned but as apt could have reported error with other things too so this method is so uneffective.
If all you trying to do is to prevent repeated execution of same package everytime you can create a file tracking the last time your program did update by
apt update -y && echo date > ~/.track
and then do update only when that time is greater than a certain period like 1 week for debian stable.
Edit:
Some folks said you can do something like
if [ -z "$(find /var/cache/apt/pkgcache.bin -mmin -60)" ]; then
apt-get update
fi
where -mmin -60 check for apt package list cache for last 1 hour. Adjust that value and you are good to go unless user or something don't write that file manually. Things can go bad also when some disk freeing application removes cache.

Fail to install libsqlite3-dev (rvm requirements) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I've just moved to Ubuntu 12.10 from Win7. Because Ruby development is a kind of pain on Win. But I get stuck on a first step on Ubuntu also.
First I got rvm as it described on rvm web site:
\curl -L https://get.rvm.io | bash -s
And then this
$ rvm requirements
gave me error and here is the log:
...
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libsqlite3-dev : Depends: libsqlite3-0 (= 3.7.13-1) but 3.7.15.2-1~pub1 is to be installed
E: Unable to correct problems, you have held broken packages.
I messing around with libsqlite3-dev and libsqlite3-0: re-installing, download and install via dpkg (and forcing instalation also). After one total system reinstall (desperade purge of libsqlite3-0, he-he), 7 hours, dozens web pages and zillions apt-get installs-purge-downloads I totaly don't know what to do. So I can provide any needed log output just don't know what exactly - I am very new in Linux.

Resources