LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can's install gnuplot (https://www.linuxquestions.org/questions/linux-newbie-8/cans-install-gnuplot-4175530044/)

AlexBB 01-04-2015 08:36 PM

Can's install gnuplot
 
Hi there. I hve been trying to isntall install gnuplot in this Ubuntu 14.04 laptop. I have successfully done it in other machines, including virtual but for some reason it does not work here.

For instance:

Quote:

alex@Aster:~$ gnuplot
The program 'gnuplot' can be found in the following packages:
* gnuplot-nox
* gnuplot-qt
* gnuplot-x11
Try: sudo apt-get install <selected package>
I do it again, the Ubuntu goes through all normal steps and as a result I still do not have the package. Why?

knudfl 01-04-2015 10:53 PM

Gnuplot, Ubuntu 14.04 Trusty : The universe repository
http://packages.ubuntu.com/trusty/gnuplot

$ sudo apt-get update && sudo apt-get install gnuplot

And / or do a search : $ apt-cache search gnuplot

... If no package ``gnuplot´´ :
Please enable "universe" →
$ sudo apt-get install synaptic
→ → Open the Synaptic package manager >> Settings >> Repositories
... and tick universe, multiverse, restricted.

-

veerain 01-04-2015 11:34 PM

Install gnuplot-x11 with package manager.

AlexBB 01-05-2015 10:34 AM

Thanks for suggestions. Search command:

Quote:

alex@Aster:~$ apt-cache search gnuplot
bonnie++ - Hard drive benchmark suite
devscripts - scripts to make the life of a Debian Package maintainer easier
texlive-latex-extra - TeX Live: LaTeX supplementary packages
texlive-pictures - TeX Live: Graphics packages and programs
amanda-client - Advanced Maryland Automatic Network Disk Archiver (Client)
amanda-server - Advanced Maryland Automatic Network Disk Archiver (Server)
cdck - tool for verifying the quality of written CDs/DVDs
chiark-scripts - chiark system administration scripts
circos - plotter for visualizing data
collectl - Utility to collect Linux performance data
ctioga2 - polymorphic plotting program
feedgnuplot - Pipe-oriented frontend to Gnuplot
gausssum - parse and display Gaussian, GAMESS, and etc's output
gnuplot - Command-line driven interactive plotting program
gnuplot-doc - Command-line driven interactive plotting program. Doc-package
gnuplot-mode - Yet another Gnuplot mode for Emacs
gnuplot-nox - Command-line driven interactive plotting program. No-X package
gnuplot-qt - Command-line driven interactive plotting program. QT-package
gnuplot-x11 - Command-line driven interactive plotting program. X-package
jed-extra - collection of useful Jed modes and utilities
kayali - A Qt-based Computer Algebra System
libchart-gnuplot-perl - module for generating two- and three-dimensional plots
libfinance-bank-ie-permanenttsb-perl - perl interface to the PermanentTSB Open24 homebanking
libgnuplot-ocaml-dev - OCaml interface to the gnuplot utility
libgnuplot-ruby - Transitional package for ruby-gnuplot
libgnuplot-ruby1.8 - Transitional package for ruby-gnuplot
libgraphics-gnuplotif-perl - dynamic Perl interface to gnuplot
libploticus0 - script driven business graphics library
libploticus0-dev - Development files for the ploticus library
mathomatic - portable Computer Algebra System (CAS)
octave-plplot - Octave support for PLplot, a plotting library
plotdrop - A minimal GNOME frontend to GNUPlot
ploticus - script driven business graphics package
probcons-extra - Extra programs from the probcons package
pstoedit - PostScript and PDF files to editable vector graphics converter
python-gnuplot - Python interface to the gnuplot plotting program
python-scitools - Python library for scientific computing
rheolef - efficient Finite Element environment
rlplot - GUI application for generating publication quality graphs
ruby-gnuplot - Ruby library to interact with gnuplot
scidavis - application for scientific data analysis and visualization
stda - simple tools for data analysis (stda)
tcptrace - Tool for analyzing tcpdump output
alex@Aster:~$ gnuplot
The program 'gnuplot' can be found in the following packages:
* gnuplot-nox
* gnuplot-qt
* gnuplot-x11
Try: sudo apt-get install <selected package>
alex@Aster:~$
I don't uderstand the output. I've tried to install gnuplot-qt and gnuplot-nox with the same negative result. Will try other commands suggested. Thanks.

AlexBB 01-05-2015 11:17 AM

Well, I donm't think the install synaptic succeeded. All I got was a bunch of errors it seems. Also I want to stress I have installed gnuplot on other Ubuntu machines, including my virtual machine with no problem however now I don't have access to any of them temporarily and am working from my laptop.

Quote:

alex@Aster:~$ sudo apt-get install synaptic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
docbook-xml librarian0 rarian-compat sgml-data
Suggested packages:
docbook docbook-dsssl docbook-xsl docbook-defguide perlsgml w3-recs opensp
libxml2-utils dwww menu deborphan
The following NEW packages will be installed:
docbook-xml librarian0 rarian-compat sgml-data synaptic
0 upgraded, 5 newly installed, 0 to remove and 350 not upgraded.
Need to get 3,205 kB of archives.
After this operation, 11.9 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
sgml-data docbook-xml librarian0 rarian-compat synaptic
Install these packages without verification [y/N]? y
Err http://us.archive.ubuntu.com/ubuntu/ raring/main sgml-data all 2.0.8
404 Not Found [IP: 91.189.91.15 80]
Err http://us.archive.ubuntu.com/ubuntu/ raring/main docbook-xml all 4.5-7.1
404 Not Found [IP: 91.189.91.15 80]
Get:1 http://us.archive.ubuntu.com/ubuntu/ raring/main librarian0 amd64 0.8.1-5build1 [57.9 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ raring/main rarian-compat amd64 0.8.1-5build1 [102 kB]
Err http://us.archive.ubuntu.com/ubuntu/ raring-updates/universe synaptic amd64 0.80~exp2raring1
404 Not Found [IP: 91.189.91.15 80]
Fetched 159 kB in 0s (185 kB/s)
Failed to fetch http://us.archive.ubuntu.com/ubuntu/..._2.0.8_all.deb 404 Not Found [IP: 91.189.91.15 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/....5-7.1_all.deb 404 Not Found [IP: 91.189.91.15 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/...ing1_amd64.deb 404 Not Found [IP: 91.189.91.15 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
alex@Aster:~$ gnuplot
The program 'gnuplot' can be found in the following packages:
* gnuplot-nox
* gnuplot-qt
* gnuplot-x11
Try: sudo apt-get install <selected package>
alex@Aster:~$
Also I don't know how to get to Synaptic Package Manager however it may be a moot point now since I dom't think the synaptic is in my laptop.

Thanks for your help. - A.

knudfl 01-05-2015 11:37 AM

Post #1 says : "Ubuntu 14.04".

But post #5 : "raring" → → That's the outdated Ubuntu 13.04 !

? What's the output from the command $ cat /etc/issue

Also : Please show your file /etc/apt/sources.list

-

AlexBB 01-06-2015 10:48 AM

knudfl hi. You are correct. It is Ubuntu 13.04. I was not aware of this. It is a confusing situation for me. I am bedridden now and another family member gave me this laptop and set up a remote desktop with an rack mount R5400 system. On that machine with a double boot the Ubuntu is definitely 14.04 but in the laptop it seems to be 13.04:

Quote:

alex@Aster:~/JAVA$ cat /etc/issue
Ubuntu 13.04 \n \l
I actually tried to install gnuplot on both machines with the same result. And I know for a fact I have gnuplot in my rackmount because I used it so many times before. I also just found out I cannot install Java either with the same manifestations: Ubuntu goes through the motions, gives me all this copious output and after I try to use javac command it point me to the packages to install which I just installed.

I also ran an update command this morning and hoped that if there was an old version here it would be updated. Nothing like this happened however.

So, I don't know what to do and until I recovered and took possession of may rack mount I am handicapped. Thanks.

AlexBB 01-06-2015 10:55 AM

This is the file you are requesting. I understand it only partially. Could you comment? I can probably reinstall the Ubuntu 14.04. I do have a CD here.

Quote:

#deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release amd64 (20130424)]/ raring main restrictedmain
Sorry I decided to remove the content of the quote because I don't think it is of interest to anybody anymore.

knudfl 01-06-2015 10:57 AM

← #7 .

Ubuntu 13.04 was obviously moved to "old releases",
and you will have to replace the content of /etc/apt/sources.list with :
Code:

deb http://old-releases.ubuntu.com/ubuntu/ raring main restricted
deb http://old-releases.ubuntu.com/ubuntu/ raring multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ raring-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ raring-updates multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted
deb http://old-releases.ubuntu.com/ubuntu/ raring-backports multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ raring-security main restricted
deb http://old-releases.ubuntu.com/ubuntu/ raring-security multiverse universe


AlexBB 01-06-2015 12:41 PM

Thank you. It does not allow me to save he new content. I do have admin privileges on this laptop now but it does not ask me for my sudo credentail. I will try another approach now.

There is no way I can do anything about this file. Permission denied is the answer when I try to save your code in a separate text file and copy it to /etc/apt/sources.list. I will have to reinstall Ubuntu it seems. A.

knudfl 01-06-2015 01:21 PM

← #10 .

HOWTO edit /etc/apt/sources.list :
$ sudo gedit /etc/apt/sources.list

Or replace 'gedit' with your preferred editor.

AlexBB 01-06-2015 03:52 PM

Amazingly, it worked. I don't understand now why it did not work for me in the first place. I opened it in gedit. Perhaps I forgot to use the sudo command. Now I will try to install gnuplot again. Thanks, - A.

AlexBB 01-06-2015 03:57 PM

Now I have a different problem:

Quote:

alex@Aster:~$ gnuplot
The program 'gnuplot' can be found in the following packages:
* gnuplot-nox
* gnuplot-qt
* gnuplot-x11
Try: sudo apt-get install <selected package>
alex@Aster:~$ sudo apt-get install gnuplot-nox
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package gnuplot-nox
alex@Aster:~$
It was able to locate it before.

knudfl 01-06-2015 05:01 PM

← #13 .

The commands are :

$ sudo apt-get update
$ apt-cache search gnuplot
$ sudo apt-get install gnuplot

... Or you can use 'synaptic'.
* The `Refresh´ button will do the required 'apt-get update'.

-

AlexBB 01-06-2015 07:56 PM

Thank you very much for your help, however, the attempt resulted in failure and it is not your fault. I have two machines here: one is a laptop with Ubuntu 13.04 and the other is Dell rackmount R5400. So, another person set up a remote desktop for me from the laptop to the rackmount. I am temporary bedridden, this is why all this arrangement. So, in the rackmpount R5400 I have Ubuntui 14.04 and in the laptop this outdated Ubuntu 13.04. I know for a fact that I have gnuplot in the rackmount since I've used that package numerous times in the past.

Now, when I ran your three commands remotely they went through but most likely it did nothing to change the already installed software. Actually I have run all of them myself in the past two or three days. Every time I run a command I get a copious output which is hard for me to interprete. I am an application programmer and my mind is elsewhere.

So, my remote R5400 has the gnuplot and when I try to run a command: gnuplot file.gnu the system hangs up and I don't see the graphic. I began to suspect that for some weird reason the actual graphic is generated in my rackmount and I don't see it. I tried to send my wife there to describe what she saw but I could not figure out what it was. It is just a total mess.

So, I came up with an idea to copy all files I need to visualize into this laptop's directory, bypassing the remote desktop. However I cannot install gnuplot in the laptop. The system goes through the motions and comes up eventually with the same response: it offers me three packages for gnuplot to install as if I did not just install it the 15th time.

That's my story. I began this thread a few days ago and perhaps tomorrow I will get back my ability to walk again and the whole thing will become a moot point. Then I will go to my racmount and work.

I really appeciate your help. Some positive experience in analysing the system is what I am going to get out of it. Thanks, - A.


All times are GMT -5. The time now is 07:47 PM.