installing NASM on ubuntu 11.10 - linux

I am new to linux and want to run an assembly language program using ubuntu 11.10.
The installation failed showing the following message
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
mplayer-skins mplayer libggi2 libgii1 libgii1-target-x youtube-dl
Use ‘apt-get autoremove’ to remove them.
The following NEW packages will be installed:
nasm
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1557kB of archives.
After unpacking 2855kB of additional disk space will be used.
Err
http://archive.ubuntu.com/ubuntu/onieric/main nasm i386 2.09.081 could
not resolve 'archive.ubuntu.com'.
failed to fetch
http://archive.ubuntu.com/ubuntu/pool/main/n/nasm/nasm-2.09.08-1-i386.deb
could not resolve 'archive.ubuntu.com'
E: unable to fetch some archives, maybe run apt-get update or try with
--fix -missing?
I am unable to figure out what the problem exactly is??
i would like to mention that i have been using ubuntu through a Live CD and not as an installed OS.

You seem to have problems with your internet connection. Specifically dns resolution. Check your /etc/resolv.conf

Related

Install TCP Wrappers in Slackware 14.2

How to install TCP Wrappers using the appropriate package manager? When I run pkgtool, I can see in the list that tcp_wrappers is included tcp_wrappers-7.6-x86_64-1. I want to install it.
I tried the command below, with no luck.
installpkg tcp_wrappers-7.6-x86_64-1.tgz
Whenever I run the command above, it says
Cannot install, file not found.
So I navigated to /var/log/packages, where the list of Slackware packages are listed and I found there tcp_wrappers-7.6-x86_64-1 file. So what I did is:
mv tcp_wrappers-7.6-x86_64-1 tcp_wrappers-7.6-x86_64-1.tgz
installpkg tcp_wrappers-7.6-x86_64-1.tgz
The prompt message is :
Verifying package tcp_wrappers-7.6-x86_64-1.tgz
gzip : stdin : not in gzip format
Installing package tcp_wrappers-7.6-x86_64-1.tgz:
PACKAGE DESCRIPTION:
WARNING: Package has not been created with 'makepkg'
Package tcp_wrappers-7.6-x86_64-1.tgz installed.
After, I verified whether the tcp_wrappers is already installed using the commands below, with no luck.
rpm -q tcp_wrappers
rpm -q tcp_wrappers-7.6-x86_64-1
rpm -q tcp_wrappers-7.6-x86_64-1.tgz
It just say:
package tcp_wrappers is not installed
package tcp_wrappers-7.6-x86_64-1 is not installed
package tcp_wrappers-7.6-x86_64-1.tgz is not installed
what shall I do?
If it is in /var/log/packages, then it's already installed. Files in this directory are simple text files with package description, list of installed files etc. Try for example:
less /var/log/packages/tcp_wrappers-7.6-x86_64-1
On my box it shows:
PACKAGE NAME: tcp_wrappers-7.6-x86_64-1
COMPRESSED PACKAGE SIZE: 77.0K
UNCOMPRESSED PACKAGE SIZE: 340K
PACKAGE LOCATION: /usb-stick/slackware64/n/tcp_wrappers-7.6-x86_64-1.txz
PACKAGE DESCRIPTION:
tcp_wrappers: tcp_wrappers (TCP/IP daemon wrapper library and utilities)
tcp_wrappers:
tcp_wrappers: With this package you can monitor and filter incoming requests for
tcp_wrappers: network services for access control, and detection things like host
tcp_wrappers: name spoofing and host address spoofing. Nearly all the network
tcp_wrappers: daemons on Slackware are "wrapped" using this library, and most
tcp_wrappers: daemons in /etc/inetd.conf use tcp_wrappers' tcpd wrapper daemon.
tcp_wrappers: If you plan to do much networking, you will need tcp_wrappers.
tcp_wrappers:
tcp_wrappers: tcp_wrappers was written by Wietse Venema.
tcp_wrappers:
FILE LIST:
./
install/
install/slack-desc
usr/
usr/doc/
usr/doc/tcp_wrappers_7.6/
usr/doc/tcp_wrappers_7.6/BLURB
usr/doc/tcp_wrappers_7.6/CHANGES
usr/doc/tcp_wrappers_7.6/DISCLAIMER
usr/doc/tcp_wrappers_7.6/README
usr/doc/tcp_wrappers_7.6/README.NIS
usr/include/
usr/include/tcpd.h
[ cut ]
rpm is RedHat tool. It will not show this package as installed, because pkgtool used by Slackware is not related to rpm in any way - it doesn't update rpm package database. rpm is installed in Slackware only for installing rpm packages, not to manage packages installed by native pkgtool.
To test, whether the packet has been installed or not, one should simply issue the command:
slackpkg search tcp_wrappers
Output will be (e.g. on Slackware 12.0)
The list below shows all packages with the selected pattern.
[ installed ] - tcp_wrappers-7.6-i486-1
The `slackpkg' allows to install, remove, list etc packets in the system. Please see the get the help option.
As for TCP_wrappers, it is included in Slackware long ago, I think

Google Cloud Functions (GCF) - installing packages With apt-get

I need 2 packages for my Google Cloud Functions (GCF) functions to work properly. I'd typically install them with the following command on Ubuntu:
apt-get -y install firefox xvfb
However, I don't know anyway to package my functions which would direct GCF to download these packages before running my code.
I tried installing them from within my Python function, using subprocess.call().
Here is some code:
try:
print(subprocess.check_output("apt-get -y install firefox", shell=True, stderr=subprocess.STDOUT))
except subprocess.CalledProcessError as e:
print("Ping stdout output:\n", e.output)
try:
print(subprocess.check_output("apt-get -y install xvfb", shell=True, stderr=subprocess.STDOUT))
except subprocess.CalledProcessError as e:
print("Ping stdout output:\n", e.output)
Unfortunately, this does not work. I get the following errors:
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libcanberra0 libdbusmenu-gtk3-4 libstartup-notification0 libtdb1
libxcb-util1 sound-theme-freedesktop xul-ext-ubufox
Suggested packages:\n fonts-lyx libcanberra-gtk0 libcanberra-pulse
The following NEW packages will be installed: firefox
libcanberra0 libdbusmenu-gtk3-4 libstartup-notification0 libtdb1
libxcb-util1 sound-theme-freedesktop xul-ext-ubufox
0 upgraded, 8 newly installed, 0 to remove and 5 not upgraded.
Need to get 44.5 MB of archives.
After this operation, 170 MB of additional disk space will be used.
W: Not using locking for read only lock file /var/lib/dpkg/lock
W: chown to _apt:root of directory /var/cache/apt/archives/partial failed - SetupAPTPartialDirectory (30: Read-only file system)
W: chmod 0700 of directory /var/cache/apt/archives/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
W: chown to _apt:root of directory /var/lib/apt/lists/auxfiles failed - SetupAPTPartialDirectory (30: Read-only file system)
W: chmod 0700 of directory /var/lib/apt/lists/auxfiles failed - SetupAPTPartialDirectory (1: Operation not permitted)
W: Not using locking for read only lock file /var/cache/apt/archives/lock
E: Couldn't determine free space in /var/cache/apt/archives/ - statvfs (38: Function not implemented)
How can I fix this error to download the packages from within my python code? Is there any other (easier/cleaner) way to achieve what I'm trying to do?
Thanks!
You can't arrange for packages to be installed on Cloud Functions instances. This is because your code doesn't run with root privileges. If you need binaries to be available to your code deployed to Cloud Functions, you will have to build it yourself for Debian, and include the binaries in your functions directory so it gets deployed along with the rest of your code.
Even if you're able to do that, there's no guarantee it will work, because the Cloud Fucntions images may not include all the shared libraries required for the executables to work.
You can request that new packages be added to the runtime using the public issue tracker. Note that the issue tracker says "App Engine" but just mention that this is for Cloud Functions.
You can't install packages but can use puppeteer instead of xvfb. https://cloud.google.com/blog/products/gcp/introducing-headless-chrome-support-in-cloud-functions-and-app-engine
Not a direct answer to your question, but it seems like you're trying to use a headless browser inside GCF. It's probably worth mentioning that headless Chrome is now supported in Cloud Functions, which might be easier to use if you're able to transition from Firefox to Chrome:
https://cloud.google.com/blog/products/gcp/introducing-headless-chrome-support-in-cloud-functions-and-app-engine

CentOS 7 ask for cabextract even when is installed

I wanted to install msttfonts on CentOS 7. Following this guide everything goes fine, until I got to run the command:
# rpmbuild -bb msttcorefonts-2.5-1.spec
The system then throws this message:
cabextract is needed by msttcorefonts-2.0-1.noarch
It is pretty obvious that I've to install cabextract, so I did. By Downloading source from here, extracting, and then ./config... make... make install... (you know guys: all the routine). And I confirm the installation was successful with
# cabextract --version
Which answers with
cabextract version 1.6
So, I go back with my command rpmbuild... But the system stills answer me
cabextract is needed by msttcorefonts-2.0-1.noarch
And now, the questions:
What I'm doing wrong? Do I need to reboot the server? Is there a kind of command to tell the server "hey! this cabextract thing is already installed"?
... and well, while I was writting this question, I could resolve it thanks to this post. So I just leave this question just for further reference.
Thanks in advance.
You need to install the cabextract package (by running yum install cabextract).
The message you are seeing is a dependency error: the msttcorefonts-2.5-1.spec file lists a dependency on cabextract, but because you have installed it from source there is no information about it in the local packages database.

Linux cant install package of apt-get or aptitude install correct

I would like to install some files on linux.
On my linux pc 64 bit i can install the file normally.
Later on a 32 bit linux workstation that didnt work. I get the faults
on install i get the faults like this....
Err: http:/de.archive.ubunti.com/ubunti raring /main freetds-common all 0.91-3 404 NOT FOUND
Err: http:/de.archive.ubunti.com/ubunti raring / libct4 i386 0.91-3 404 NOT FOUND
Failed to fetch de.archive.ubuntu.com/ubuntu/pool/main/f/freetds/freetds-common 0.91-3 all.deb 404 NOT FOUND
after install the freetds has not the i value next to the package of aptitude search but also the p value next to the i.
What can i make to install packages there correctly?
Be sure you have internet connection then try to update your repository files:
apt-get update
https://askubuntu.com/questions/222348/what-does-sudo-apt-get-update-do
The error output is pretty much trivial 404 NOT FOUND, you are trying to access smth with doesn't exist
Go over following step
Check if you have correct network setup i.e.
ping de.archive.ubuntu.com if its not working try with direct ip lookup
Update the repository metadata freetds-common_0.91-3_all.deb you are trying to access is not there but the newer version freetds-common_0.91-5_all.deb is, so you will need to refresh the repository metadata.

apt-get fails Debian

I have a Linux server that is running Debian squeeze, I can not run apt-get update on it. I get errors like these:
W: Failed to fetch http://ftp.us.debian.org/debian/dists/squeeze/main/binary-i386/Packages.gz
Unable to connect to 10.197.3.5:3142:
I can successfully ping ftp.us.debian.org ,but the ip address that it shows is different than the ip address shown with the unable to connect message.
I assumed this was an issue with DNS translation, so I changed my DNS server to google's 8.8.8.8 server
Running dig google.com
shows that the DNS server is in fact the google server I specified.
I'm stumped. It may be of note that I am forwarding port 22 and port 80 to my router so my teammates can ssh and view the webpage associated with this server. I don't think this is the issue since this occurs even when I stop the forwarding.
Turns out the original holder of this server set up a proxy in /etc/apt/apt.conf that wasn't working, (I don't know why this was)
I remove this line form that file
Acquire::http::Proxy "PROXYIP/apt-cacher/";
I have fixed similar issue applying one comment about your issue:
My environment is:
Linux debianlpi 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64 GNU/Linux
The issue that I got, was:
root#debianlpi:~# apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
vim-runtime
Suggested packages:
ctags vim-doc vim-scripts
The following NEW packages will be installed:
vim vim-runtime
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,999 kB of archives.
After this operation, 28.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
vim-runtime vim
Install these packages without verification? [y/N] y
0% [Connecting to idcproxy.compabc.com (432.1.2.20)]
It was fixed removing line in /etc/apt/apt.conf:
root#debianlpi:~# cat /etc/apt/apt.conf
#Acquire::http::Proxy "http://idcproxy.compabc.com:80";

Resources