I have a situation where I need to run yum from a site that has a slow "about 50kbps" intermittent connection. For packages smaller than 40M (our unscientifically determined threshold) yum seems to eventually get the job done but anything larger will eventually stall out and not work. So far I haven't been able to figure out the magical configuration to get this working properly. I'd like to know if anyone has some suggestions on what I could do to fix this.
You might try using yumdownloader to retrieve the rpm(s), and then yum to install the already downloaded rpms.
Related
I can't load any webpage in browsers (mozilla and chrome).
Also i can't execute sudo apt update command, because my file /var/lib/apt/lists/lock locked by process 917.
But my computer has internet, because messengers like telegram is working.
And i can execute command ping -c5 8.8.8.8 and it loads packages fine.
Can someone help me please?
Regarding the issue with apt, you likely have another instance of apt running somewhere. You really don't want doing multiple operations on your system's packages at the same time so apt automatically sets a lock file (/var/lib/apt/lists/lock) to avoid that.
tl.dr. find the other running instance of apt and kill it if appropriate. If you cant find any (can happen sometimes), delete the /var/lib/apt/lists/lock file yourself (please see https://askubuntu.com/a/335801).
I want to install openjdk on ubuntu.
I found two ways to install it.
The first is typing "sudo apt-get install openjdk-8-jdk" on terminal.
The second is downloading the binary file such as *.tar.gz and then unpack the file and set environment variables JAVA_HOME&PATH.
So, is there any difference between this two methods?
I mean, will it cause different results?
Thanks a lot.
With the first approach, the installation is controlled by Debians Apt package manager and will receive updates, with the second one you will have to do that manually.
It will probably not end with different result.
On linux distributions you have what is called a packet manager : Yours (and on almost every ubuntu) is APT.
So the main difference is that when you use apt, you can "trust more" what you are downloading, because hopefully, content in apt are check.
However, because of this checking, apt isn't every time up-to-date, and it may induce some difference in version.
However, in my opinion if you doesn't want to duplicate file or pollute your system, you may want to choose either one option and stay with it : if you use apt, use apt to update, if you download it manually keep updating it manually.
I personally prefer to use apt when possible.
Brace yourself, I'm a Windows admin messing with a CentOS 6 server.
Let's start by saying I know very little about Linux.
I'm trying to load an rmmagent, GFI/MaxFocus's agent. It's failing the dependency check on kernel-utils and unzip.
error: Failed dependencies:
kernel-utils is needed by rmmagent-1.0.2.centos6-1.2.x86_64
unzip is needed by rmmagent-1.0.2.centos6-1.2.x86_64
I Googled myself to death, but I think I just don't know enough about Linux to make this go.
Can someone educate me or point me to the right place to learn how to do this? Thanks!
-Jeff
PS: I got unzip installed without issue.
We had the same issue. We spoke to the LogicNow support and they give us this solution:
wget -c ftp://rpmfind.net/linux/Mandriva/official/9.1/i586/Mandrake/RPMS/ksymoops-2.4.8-1mdk.i586.rpm
yum install ksymoops-2.4.8-1mdk.i586.rpm
I've been programming for about 6 months but have just started moving into Operating Systems and the internals of Linux/Ubuntu and how OS's work in general. For my job, I'm tasked to do a lot of configuration setups with packages Linux, nginx,rails, etc and every once in a while I run into an error like the one I am currently experiencing.
sudo apt-get install cvsnt
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package cvsnt
These errors frustrate me because I don't have a formulated attack plan to troubleshoot it. I'm taking EdX's introduction to Linux and that has been helpful, but the internals of Linux is still a mystery me and when something like this pops up its very difficult for me to figure out what to do. Most of the time I hope that stackoverflow has an answer for the specific problem I'm having.
So how would I attack this problem? There is no error that is helpful other than that the package has not been found. Do I check the CVSNT docs first? Is there something wrong with Ubuntu Linux? Is there something wrong with dpkg? Is there a file to check for stuff? Is it a path problem? Where do you start. I'd like to be able to navigate through these problems effectively because they won't be going away anytime soon as long as I'm assigned to configure things. Thanks.
You need to read and understand how Aptitude or apt works. In a nutshell you need to tell it where the CVSNT repository is in sources.list otherwise it will not know.
First make sure the "Universe" is enabled in you etc/apt/sources.list as below where <YourRelease> would or could be lucid or trusty if its 14.04. You did not mention which version of Ubuntu you're on. You want this line enabled or if it is not there add it
deb http://us.archive.ubuntu.com/ubuntu/ <YourRelease> main universe
Then do
sudo apt-get update
to reread the sources.list then follow that with
sudo apt-get install cvsnt
See what you get. This should install the correct version of CVSNT and any dependencies required. You will need python running for CVSNT to work.
Good luck and let us know.
Ok, I have this whole new machine on which I just freshly installed Ubuntu 12.10. I'm trying to install node.js by following the instructions on this website. The first time I did that it worked like a charm, but then I had some troubles installing packages because nodejs --version and node --version gave two different results. I thought then that the best idea was to do a rm -rf /usr/var/node or something like that. That resulted in a total mess up of everything.
By trying to call sudo apt-get install nodejs again, I get the following error message:
[...]
Errors were encountered while processing:
/var/cache/apt/archives/nodejs_0.8.26-1chl1~quantal1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I really tried everything, from apt-autoremove to clean to whatever, I cannot possibly figure out why this is not working anymore. Any ideas?
Thanks
Edit: it's funny how people gives -1 without even reading the question. If these smart alecks think this question is stupid or inappropriate, they could simply write so or help me out, since I'm struggling with this. Also, removed some of the output, since people cannot read until the end of it.
Try install the locales packages, and run dpkg-reconfigure locales to set the locales "en-US" for the system.