Download and install a program not found in Ubuntu Software center

Asked by Don Armstrong

 Okay I'm on Ubuntu 12.04 LTS. I have a weather station that I want to work on my PC. The program is WVIEWWEATHER and the main directory of their program is at www.wviewweather.com/apt/ The various versions of the software are listed and 12.04 is PRECISE so that is where all the files are that I need . I can't get any further trying to use WGET or any other program or do I need to download and install Synaptic instead and if I do can I then install the entire package. Their info gets me nowhere and Ubuntu Software center does not find it. Here is their manual including the download info. http://www.wviewweather.com/release-notes/wview-User-Manual.html#Installation-debian
 Again do I need to use a different download program to pull down an entire package? Once it is downloaded where is it stored at? Can I still use the apt-cache search wview followed by sudo apt-get install wview or does the package I will end up with get called something else.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu software-center Edit question
Assignee:
No assignee Edit question
Solved by:
Don Armstrong
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Run:

echo "deb http://www.wviewweather.com/apt/precise precise main" | sudo tee /etc/apt/souces.list.d/wviewweather.list > /dev/null

echo "deb-src http://www.wviewweather.com/apt/precise precise main" | sudo tee -a /etc/apt/souces.list.d/wviewweather.list > /dev/null

What is then the output of:

sudo apt-get update

Thanks

Revision history for this message
Don Armstrong (scavenger352003) said :
#2

 I tried inputting the info and I just get a carriage return. Is there any spaces in any of the info you sent or is it one contiguous line for the command line done in terminal with no spaces at all? I'm reading the info from one computer and inputting it into another.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Yes, they are where they should be, copy and paste the text rather than attempting to retype

Revision history for this message
Don Armstrong (scavenger352003) said :
#4

Response from both command lines is
tee: /etc/apt/souces.list.d/wviewweather.list: No such file or directory
 However sudi apt-get update did download a bunch of "stuff" but is it what I need?

don@don-Deskpro-EP-SB-Series:~$ sudo apt-get update
Ign http://us.archive.ubuntu.com precise InRelease
Ign http://us.archive.ubuntu.com precise-updates InRelease
Ign http://us.archive.ubuntu.com precise-backports InRelease
Hit http://us.archive.ubuntu.com precise Release.gpg
Get:1 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Hit http://us.archive.ubuntu.com precise-backports Release.gpg
Ign http://security.ubuntu.com precise-security InRelease
Hit http://us.archive.ubuntu.com precise Release
Ign http://extras.ubuntu.com precise InRelease
Get:2 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]
Get:3 http://security.ubuntu.com precise-security Release.gpg [198 B]
Hit http://us.archive.ubuntu.com precise-backports Release
Hit http://extras.ubuntu.com precise Release.gpg
Get:4 http://security.ubuntu.com precise-security Release [49.6 kB]
Hit http://us.archive.ubuntu.com precise/main Sources
Hit http://us.archive.ubuntu.com precise/restricted Sources
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Get:5 http://us.archive.ubuntu.com precise-updates/main Sources [188 kB]
Hit http://extras.ubuntu.com precise Release
Get:6 http://us.archive.ubuntu.com precise-updates/restricted Sources [4,419 B]
Get:7 http://us.archive.ubuntu.com precise-updates/universe Sources [61.6 kB]
Hit http://extras.ubuntu.com precise/main Sources
Get:8 http://us.archive.ubuntu.com precise-updates/multiverse Sources [4,241 B]
Get:9 http://us.archive.ubuntu.com precise-updates/main i386 Packages [433 kB]
Get:10 http://security.ubuntu.com precise-security/main Sources [54.6 kB]
Hit http://extras.ubuntu.com precise/main i386 Packages
Ign http://extras.ubuntu.com precise/main TranslationIndex
Get:11 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [8,374 B]
Get:12 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [153 kB]
Get:13 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [9,661 B]
Get:14 http://security.ubuntu.com precise-security/restricted Sources [1,950 B]
Get:15 http://security.ubuntu.com precise-security/universe Sources [15.8 kB]
Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Hit http://us.archive.ubuntu.com precise-backports/main Sources
Hit http://us.archive.ubuntu.com precise-backports/restricted Sources
Hit http://us.archive.ubuntu.com precise-backports/universe Sources
Hit http://us.archive.ubuntu.com precise-backports/multiverse Sources
Hit http://us.archive.ubuntu.com precise-backports/main i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex
Get:16 http://security.ubuntu.com precise-security/multiverse Sources [1,392 B]
Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
Get:17 http://security.ubuntu.com precise-security/main i386 Packages [201 kB]
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
Ign http://extras.ubuntu.com precise/main Translation-en_US
Ign http://extras.ubuntu.com precise/main Translation-en
Get:18 http://security.ubuntu.com precise-security/restricted i386 Packages [3,968 B]
Get:19 http://security.ubuntu.com precise-security/universe i386 Packages [54.9 kB]
Get:20 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,388 B]
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Fetched 1,298 kB in 6s (192 kB/s)
Reading package lists... Done

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

ok, run:

gksudo gedit /etc/apt/sources.list

add these 2 lines:

deb-src http://www.wviewweather.com/apt/precise precise main
deb http://www.wviewweather.com/apt/precise precise main

Save the new file, close gedit and run:

sudo apt-get update

What is output?

Revision history for this message
Don Armstrong (scavenger352003) said :
#6

 From the first commnd line I get.

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main

 The other three command lines just produce a carriage return and nothing else.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

Yes, add the 2 lines I gave to the text file. This will add the new server as a source of packages

Revision history for this message
Don Armstrong (scavenger352003) said :
#8

 Sorry for the delay. The other two command lines just produced a carriage return and nothing else so it was valid but still no updates retrieved. I then went back to the WVIEW home page and started searching all over the page for any other lines and on the opposite side was from the Debian /Ubuntu Install/upgrade/convert prompt was another one that just says Downloads. I ended up getting a file direct to my PC that was wview-5.20.2.tar.gz I had to find it in downloads and convert it. It appears their web page has conflicting info on the install package.

 in fact my only trouble now is trying to run an install I get one error
checking for gdImageCreate in -lgd... no
libgd is missing!
 Now according to the Wview web site it is the libgd2 files and according to ubuntu it does exist so do I have to path my directory so it finds it in the install or do I have to copy libgd2 to this folder.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

sudo apt-get install libgd-tools

If you use the PPA, it will AL be handled for you though, lots easier.

Revision history for this message
Don Armstrong (scavenger352003) said :
#10

OK first off what is PPA. Plkeaase show short hand and then long hand so I know what you are talking about because BDRRIB means something to me but nothing to you.
 This has been a pain in the neck due to conflicting info on the WVIEW web site along with conflicting instructions in the instalation files. Commands that they say to use get respones of error codes and prompts.
 I fpound out the hard way that I have to be within the extracted directory rather than just pointing to it. I tried the sudo apt-get install libgd-tools and get the following response

don@don-Deskpro-EP-SB-Series:~/Downloads/wview-5.20.2$ apt-cache search libgd-tools
libgd-tools - GD command line tools and example code
don@don-Deskpro-EP-SB-Series:~/Downloads/wview-5.20.2$ sudo apt-get install libgd-tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgd-tools is already the newest version.
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-29 linux-headers-3.2.0-29-generic-pae
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
don@don-Deskpro-EP-SB-Series:~/Downloads/wview-5.20.2$ ./configure && make && sudo make install
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether ln -s works... yes
checking for strncpy in -lc... yes
checking for gdImageCreate in -lgd... no
libgd is missing!

 Note in the beginning it says it found it but in the end it says it is not there.

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

There are two possibilities:

1. you install the prepackaged version by adding the lines:
 deb-src http://www.wviewweather.com/apt/precise precise main
 deb http://www.wviewweather.com/apt/precise precise main
to your source list as actionparsnip already told. This should be the easier way.

2. you try compiling yourself, for that you have to install additional packages.
try
sudo apt-get install libgd2-xpm-dev libgd2-noxpm-dev

Revision history for this message
Don Armstrong (scavenger352003) said :
#12

 Here is what the end of the sources list now has.

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
deb-src http://www.wviewweather.com/apt/precise precise main
deb http://www.wviewweather.com/apt/precise precise main

Now I tried the install again and as usual it fails with
checking for gdImageCreate in -lgd... no
libgd is missing!

I then tried your route instead and get the following response.

don@don-Deskpro-EP-SB-Series:~/Downloads/wview-5.20.2$ sudo apt-get install libgd2-xpm-dev libgd2-noxpm-dev
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:
 libgd2-noxpm-dev : Depends: libgd2-noxpm (= 2.0.36~rc1~dfsg-6ubuntu2) but it is not going to be installed
                    Conflicts: libgd-dev
                    Conflicts: libgd2-xpm-dev but 2.0.36~rc1~dfsg-6ubuntu2 is to be installed
 libgd2-xpm-dev : Conflicts: libgd-dev
                  Conflicts: libgd2-noxpm-dev but 2.0.36~rc1~dfsg-6ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.

Revision history for this message
Manfred Hampl (m-hampl) said :
#13

Seems there are some dependecies that I missed to take into account. Try the command

apt-get --simulate install libgd2-xpm-dev libgd-dev-

and copy/paste all output

Revision history for this message
Don Armstrong (scavenger352003) said :
#14

don@don-Deskpro-EP-SB-Series:~/Downloads/wview-5.20.2$ apt-get --simulate install libgd2-xpm-dev libgd-dev-
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
Virtual packages like 'libgd-dev' can't be removed
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-29 linux-headers-3.2.0-29-generic-pae
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libxpm-dev
The following NEW packages will be installed:
  libgd2-xpm-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libxpm-dev
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Inst libjpeg-turbo8-dev (1.1.90+svn733-0ubuntu4.1 Ubuntu:12.04/precise-updates [i386])
Inst libjpeg8-dev (8c-2ubuntu7 Ubuntu:12.04/precise [i386])
Inst libjpeg-dev (8c-2ubuntu7 Ubuntu:12.04/precise [all])
Inst libxpm-dev (1:3.5.9-4 Ubuntu:12.04/precise [i386])
Inst libgd2-xpm-dev (2.0.36~rc1~dfsg-6ubuntu2 Ubuntu:12.04/precise [i386])
Conf libjpeg-turbo8-dev (1.1.90+svn733-0ubuntu4.1 Ubuntu:12.04/precise-updates [i386])
Conf libjpeg8-dev (8c-2ubuntu7 Ubuntu:12.04/precise [i386])
Conf libjpeg-dev (8c-2ubuntu7 Ubuntu:12.04/precise [all])
Conf libxpm-dev (1:3.5.9-4 Ubuntu:12.04/precise [i386])
Conf libgd2-xpm-dev (2.0.36~rc1~dfsg-6ubuntu2 Ubuntu:12.04/precise [i386])
don@don-Deskpro-EP-SB-Series:~/Downloads/wview-5.20.2$
don@don-Deskpro-EP-SB-Series:~/Downloads/wview-5.20.2$ and copy/paste all output

Revision history for this message
Manfred Hampl (m-hampl) said :
#15

The simulation showed that the installation should work with a slightly adapted command. Try the command

sudo apt-get install libgd2-xpm-dev

and copy/paste all output as done before. If that command ends without error, you might try compiling and installing the package again.

cd ~/Downloads/wview-5.20.2
./configure && make && sudo make install

(Remark: Installing the prepackaged version is recommended over compiling a package yourself.
As you have already added the wviewweather.com repositories, the commands

sudo apt-get update
sudo apt-get install wview

should the do the job.)

Revision history for this message
Don Armstrong (scavenger352003) said :
#16

 It appears the program installed. I went back to scratch and downloaded it again and followed all the steps and this time I got all the proper responses. That being said the program does not work. I can't run any of the management configuration prompts because it says the program is running and I need to stop it first. I can't stop it because it does not show as running and several management commands don't work at all. I see multiple other users getting zero responses on how to fix troubles with the program not working. I've decided that it is a complete waste of my time and effort and will go back to running my weather station on Windows XP where I have zero troubles. It appears that Ubuntu is still a fly by night project good for hobbyists.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#17

You can't copy and paste text. That's the issue. I gave the commands from the developers site. If you can't do that then you will struggle with most things in IT.

Ubuntu server is what runs Wikipedia. You may want to rethink your opinion there.

Ignorance is bliss I guess.

Revision history for this message
Don Armstrong (scavenger352003) said :
#18

 I started with DOS 2.3 and spent many years working in technical support doing beta trials and writing the supporting documentation on date , communications , audio response and voice mail along with both the hardware and software interfaces. It got to a point where working in C+ on a 32 bit processor I could add subtract and divide in hexadecimal in my mind What I find over and over on many of the software programs written for Linux is the person that wrote it knew what they were talking about and assume that everyone else knows exactly what they are talking about. The end result is there is a bunch of holes in the technical info for the weather station program. Working for both IBM and Siemens in technical support I ran into far to many programers that said "My part of the code is fine". All to often I would reproduce the troubles I saw in the field and then point out all the holes in the code via tracking the FEP. the APP and the System Processor and the interactions of everything. All to often the response was "well they should not do that".
 Looking at some of the user group questions for this program I'm seeing others using the product having the same troubles with interfaces not working properly and partial failures of the program. I see no responses from others using the product to help those individuals and the documentation appears to assume that everyone knows how to do a HELP on every command and figure out what each undocumented command will do.
  As a Vietnam Veteran the number one thing I always learned was to document everything and fix the unexpected before it happens. That is not what I see from a lot of the hobbyists that attempt to write programs.
 When I get a chance I will erase the hard drive and reload Ubuntu and try again because I think a bunch of the library files have been corrupted because of troubles. I'll give it another try and try to figure out all the "stuff" the writer and developer left out because they "Assumed the assumption".

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#19

Every OS has bugs. Its inherent with being software.