LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing from repositories (https://www.linuxquestions.org/questions/linux-newbie-8/installing-from-repositories-4175571783/)

chris_crunch 02-09-2016 07:32 AM

Installing from repositories
 
I want to install HDF5 on my linux computer.

Eh, can I do this from repositories- if so how, and why?

I downloaded the source package from github but i'm not sure how to build it...

there's a setup.py file. What do I do with this?

Thanks...

Mitt Green 02-09-2016 08:06 AM

Hi,

There are hdf5-tools and hdf5-helpers packages in universe.

To build from source run
Code:

python setup.py install
Hope this helps

chris_crunch 02-09-2016 08:26 AM

Thanks, what's this error mean?

Installed /home/chris/anaconda2/lib/python2.7/site-packages/Pydap-3.1.1-py2.7.egg
Searching for hydroffice.bag
Reading https://pypi.python.org/simple/hydroffice.bag/
No local packages or download links found for hydroffice.bag
error: Could not find suitable distribution for Requirement.parse('hydroffice.bag')

rokytnji 02-09-2016 08:39 AM

Quote:

No local packages or download links found for hydroffice.bag
What does it mean? That you are missing hydroffice.bag.

Usually for python stuff. I use pip to handle python application installations.

http://docs.h5py.org/en/latest/build.html

Quote:

Installation
Pre-configured installation (recommended)

Its strongly recommended that you use a Python distribution or package manager to install h5py along with its compiled dependencies. Here are some which are popular in the Python community:

chris_crunch 02-09-2016 08:44 AM

okay cool.

conda install h5py seems to be working.

What's going on there- is it pulling it from the repositories?

Also this probably seems stupid but after it's installed... how do I open it?

chris_crunch 02-09-2016 08:46 AM

wait, what happened here?

Code:

Extracting packages ...
[      COMPLETE      ]|################################################################################################################################################| 100
Unlinking packages ...
[      COMPLETE      ]|################################################################################################################################################| 100
Linking packages ...
An unexpected error has occurred, please consider sending the###                                                                                                      |  28%
following traceback to the conda GitHub issue tracker at:

    https://github.com/conda/conda/issues

Include the output of the command 'conda info' in your report.


Traceback (most recent call last):
  File "/home/chris/anaconda2/bin/conda", line 5, in <module>
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 195, in main
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/cli/main.py", line 202, in args_func
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/cli/main_install.py", line 45, in execute
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/cli/install.py", line 423, in install
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/plan.py", line 537, in execute_actions
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/instructions.py", line 148, in execute_instructions
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/instructions.py", line 91, in LINK_CMD
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/instructions.py", line 87, in link
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/install.py", line 634, in link
  File "/home/chris/anaconda2/lib/python2.7/site-packages/conda/install.py", line 132, in _link
  File "/home/chris/anaconda2/lib/python2.7/shutil.py", line 130, in copy2
    copyfile(src, dst)
  File "/home/chris/anaconda2/lib/python2.7/shutil.py", line 82, in copyfile
    with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: u'/home/chris/anaconda2/pkgs/numpy-1.10.4-py27_0/lib/python2.7/site-packages/numpy/distutils/__config__.py'


Emerson 02-09-2016 08:50 AM

Please use code tags to post code.

chris_crunch 02-09-2016 09:10 AM

Quote:

Originally Posted by Emerson (Post 5497519)
Please use code tags to post code.

Sorry, have edited. Will do in future.

Mitt Green 02-09-2016 02:28 PM

Chris, have you tried installing from repositories?
Does it work at the end of the day?
Here are lists of files for hdf5-tools and hdf5-helpers if you are lost.

ondoho 02-10-2016 12:14 AM

with this user, you really have to look at their posting history.
started about a dozen threads about installing python stuff, ignoring the obvious advice of "use the repos" and always starts a new thread instead of trying to solve the problem first.
all in the last 2 weeks.

chris_crunch 02-10-2016 02:34 AM

Quote:

Originally Posted by ondoho (Post 5497927)
with this user, you really have to look at their posting history.
started about a dozen threads about installing python stuff, ignoring the obvious advice of "use the repos" and always starts a new thread instead of trying to solve the problem first.
all in the last 2 weeks.

I'm sorry, I'm trying my best to learn. This is a forum for helping new users, not for criticizing them surely?

But I still can't get my head around this repository stuff guys. No one has took the time to give me a proper explanation, instead just swatting me with "use the repos".

If I'm correct, can you just use the command

Code:

sudo apt-get install <thing>
will this install stuff straight from these repository things? I have 'googled' this, I know they're archives of online software programs, I know there's 4 of them... but I'm not exactly sure how to use them.

Mitt Green 02-10-2016 02:47 AM

Quote:

Originally Posted by ondoho (Post 5497927)
with this user, you really have to look at their posting history.
started about a dozen threads about installing python stuff, ignoring the obvious advice of "use the repos" and always starts a new thread instead of trying to solve the problem first.
all in the last 2 weeks.

Looks like Chris is not yet familiar with what repositories are, hence attempts of building. For newcomers it's okay.

NGIB 02-10-2016 02:48 AM

Each distro is tied to a pool of software called a repository. The software in the repository is verified to work properly with the distro. Installing software from outside the repository can and does cause problems. While Ubuntu and Debian both come from the same base (Debian), they are not the same. Installing a Ubuntu based program in Debian may work or may not and vice-versa.

Pick a distro and only install from the repository until you understand what you're doing. As Ubuntu (and all of its derivatives) has a huge repository, it's likely that all you need is there. It can be installed through Software Center, Synaptic (which I use) or apt-get (which I also use).

You really need to take the time to do some reading so you actually understand how the whole package management philosophy works. I've seen all your posts and you have yet to show you have paid any attention to the advice you've been given and soon folks are going to just give up helping you...

chris_crunch 02-10-2016 02:52 AM

Quote:

Originally Posted by NGIB (Post 5497969)
You really need to take the time to do some reading so you actually understand how the whole package management philosophy works. I've seen all your posts and you have yet to show you have paid any attention to the advice you've been given and soon folks are going to just give up helping you...

Hi NGIB,

Thanks for the advice. So if I wanted to install a program from the repository on my system using apt-get, I would say something like

Code:

sudo apt-get install name_of_program
and it would install it?

NGIB 02-10-2016 02:56 AM

Yes, but you need to know the exact package name.

Also, you need to stop posting multiple threads about the same issue. As I said in your other thread, install Synaptic and you can use it to figure out what you're looking for. Rather that continue to ask the same thing fifty different ways, perhaps you need to follow the advice you've been given and actually put some effort into learning what you're trying to do.

If you continue the path you've been on, I suspect folks will add you to their ignore list - I know I will...

Mitt Green 02-10-2016 03:00 AM

Quote:

Originally Posted by chris_crunch (Post 5497960)
I'm sorry, I'm trying my best to learn. This is a forum for helping new users, not for criticizing them surely?

But I still can't get my head around this repository stuff guys. No one has took the time to give me a proper explanation, instead just swatting me with "use the repos".

If I'm correct, can you just use the command

Code:

sudo apt-get install <thing>
will this install stuff straight from these repository things? I have 'googled' this, I know they're archives of online software programs, I know there's 4 of them... but I'm not exactly sure how to use them.

A short guide (I prefer using plain apt instead of apt-get, apt-cache etc.):

Prior to all you have to update information about packages in repositories:
Code:

apt update
First you want to search for packages; their names can differ from the names of source packages. Repositories contain precompiled binaries, which means that you don't have to search the world wide web for sources. So, to search:
Code:

apt search <package>
An example output:
Code:

$ apt search file-roller
Sorting... Done
Full Text Search... Done
file-roller/unstable 3.16.4-1 amd64
  archive manager for GNOME

Second, to install:
Code:

apt install <package>
Consult with apt search to type a proper name of a package.

Third, to remove a package:
Code:

apt remove <package>
or to remove completely, including configuration files:
Code:

apt purge <package>
When removing something, consult with dependencies - packages that will be removed as well because this particular package is needed for them to run. An example:
Code:

$ sudo apt purge 0ad
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following packages were automatically installed and are no longer required:
  0ad-data-common fonts-texgyre libboost-filesystem1.58.0
  libboost-system1.58.0 libgloox13v5 libnvtt2 libsdl2-2.0-0 libsndio6.0
  libwxbase3.0-0v5 libwxgtk3.0-0v5
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  0ad* 0ad-data*
0 upgraded, 0 newly installed, 2 to remove and 7 not upgraded.
After this operation, 1,535 MB disk space will be freed.
Do you want to continue? [Y/n]


chris_crunch 02-10-2016 03:11 AM

Finally, someone who has taken the time to explain things clearly.

Thank you Mitt! This makes a lot more sense than what I've previously heard. I'm assuming that you could download other package managers like Synaptic to do a similar job, but using apt, which is the standard package manager for Debian, is also basically the same thing, it's just a matter of user preference?

And I just have one more question:

Code:

libcuda1-346-updates/trusty-updates,trusty-security 352.63-0ubuntu0.14.04.1 amd64
  Transitional package for libcuda1-352-updates

I guess that trusty-updates is a particular type of mirror repository? Why is my system using this instead of either Universe etc.?

NGIB 02-10-2016 03:18 AM

Quote:

Originally Posted by chris_crunch (Post 5497979)
Finally, someone who has taken the time to explain things clearly.

Ok, I'm done with you. You do realize that we all expect you to actually put in some effort to read and understand on your own? I spoon feed my one year old grandson and that's my linit...

Mitt Green 02-10-2016 03:27 AM

Quote:

Originally Posted by chris_crunch (Post 5497979)
Finally, someone who has taken the time to explain things clearly.

Thank you Mitt! This makes a lot more sense than what I've previously heard. I'm assuming that you could download other package managers like Synaptic to do a similar job, but using apt, which is the standard package manager for Debian, is also basically the same thing, it's just a matter of user preference?

And I just have one more question:

Code:

libcuda1-346-updates/trusty-updates,trusty-security 352.63-0ubuntu0.14.04.1 amd64
  Transitional package for libcuda1-352-updates

I guess that trusty-updates is a particular type of mirror repository? Why is my system using this instead of either Universe etc.?

dpkg is actually default in both Ubuntu and Debian but it doesn't deal with repositories, and is only used to deal with local packages (for all features type man dpkg). APT is kind of a front-end for dpkg with some additional functions, like online repositories.

The file /etc/apt/sources.list contains information on repositories that APT uses. Please, post output using
Code:

cat /etc/apt/sources.list
Ubuntu divides software into four main sub-repositories:

Main - contains only supported by Ubuntu free software;
Universe - contains unsupported but free software;
Restricted - contains supported non-free software;
Multiverse - contains unsupported non-free software.

Updates contain newer versions of packages, provided by these four.


So, print the output, we'll see what you have.


By the way, man pages are a great source of information about a programme. The descriptions there are highly technical and informative. It's a good habit to read them fully, though it surely requires some time.

Mitt Green 02-10-2016 03:36 AM

Just my two cents.

Using command-line tools is by far the best way to get used to a command-line interface. They have advantages:
  • they are simple
  • they are fast
  • they will help you if your graphical user interface is broken
  • it's a traditional Unix way
  • they will help you understand your computer better

chris_crunch 02-10-2016 03:49 AM

Quote:

Originally Posted by Mitt Green (Post 5497983)

So, print the output, we'll see what you have.

Thanks Mitt. This stuff is pretty overwhelming to get your head round at first, your help is definitely speeding up my learning curve! Okay,

Code:

chris@chris-crunch:/etc/apt$ cat sources.list
#deb cdrom:[Xubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140416.2)]/ trusty main multiverse restricted universe

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://gb.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty universe
deb http://gb.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://gb.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://gb.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-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 trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty 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 trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main


Mitt Green 02-10-2016 10:13 AM

Put where lacking universe, multiverse, etc., so it will look like this:
Code:

deb http://gb.archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse

Tinkster 02-10-2016 01:50 PM

Quote:

Originally Posted by NGIB (Post 5497980)
Ok, I'm done with you. You do realize that we all expect you to actually put in some effort to read and understand on your own? I spoon feed my one year old grandson and that's my linit...

Ummm ... instead of being rude and stating that you're done with him, why don't you save your breath
and my time and simply remain quiet?


Thanks,
Tink


All times are GMT -5. The time now is 06:11 PM.