1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can't find package

Discussion in 'Installation and Maintenance of Ports or Packages' started by toweris, Apr 28, 2012.

  1. toweris

    toweris New Member

    Messages:
    14
    Thanks Received:
    0
    I have tried to install Gnome desktop. And it said that permission denied or package does not exist. What should I install to start using the packages system?
     
  2. Beastie

    Beastie Active Member

    Messages:
    1,929
    Thanks Received:
    339
    Nothing as it's part of the base system. But you're probably not doing it right. Just set the [fileb]PACKAGESITE[/file] environment variable to the proper (e.g. AMD64, 9-STABLE) package repository (or else it'll install RELEASE packages by default) and as root install any package using the pkg_add -r package_name command.

    Telling us what command you're typing and what error it's giving you would really help.

    The related Handbook page should give you all the information you need.
     
  3. toweris

    toweris New Member

    Messages:
    14
    Thanks Received:
    0
    I entered pkg_add -r gnome2 and I got the following text:
    Code:
    Error unable to get  {(File adress)}. File  unavailable (e.g. file not found , no access)


    I wrote only first part of error message, because my client does not allow me to copy.
     
  4. bbzz

    bbzz Member

    Messages:
    868
    Thanks Received:
    123
    You need to be connected to internet.
     
  5. toweris

    toweris New Member

    Messages:
    14
    Thanks Received:
    0
    I have checked my interned connection using ping and seems that internet works good.
     
  6. formateur_fou

    formateur_fou New Member

    Messages:
    53
    Thanks Received:
    6
    Sorry for asking, but did you check that you were logged in as root? Sometimes I forget to do so and get messages similar to yours. I noticed too, that when you get this message for a dependency, trying to install explicitly this dependency may solve the problem.
     
  7. toweris

    toweris New Member

    Messages:
    14
    Thanks Received:
    0
    Yes I'm logged as root. What dependency should I install?
     
  8. formateur_fou

    formateur_fou New Member

    Messages:
    53
    Thanks Received:
    6
    Sometimes the message is about a dependency and not about the main program you're trying to install.
    I noticed that
    Code:
    # pkg_add -r this_dependency
    may work and enable you to carry on. What is the first error you get?
     
  9. toweris

    toweris New Member

    Messages:
    14
    Thanks Received:
    0
    Code:
    Error: unable to get ftp://ftp.freebsd.org/pub/freeBSD/ports/and64/packages-8-stable/Latest/gnome2.tbz.
     File unavailable (e.g. file not found, no access

    Sorry if I missed something. I wrote that from screen.
     
  10. bbzz

    bbzz Member

    Messages:
    868
    Thanks Received:
    123
    That's great but does name resolving work?
     
  11. D4rkSilver

    D4rkSilver New Member

    Messages:
    72
    Thanks Received:
    4
    It's also possible that the package was broken in the last update of the repository and became temporarily unavailable.
     
  12. formateur_fou

    formateur_fou New Member

    Messages:
    53
    Thanks Received:
    6
  13. toweris

    toweris New Member

    Messages:
    14
    Thanks Received:
    0
  14. formateur_fou

    formateur_fou New Member

    Messages:
    53
    Thanks Received:
    6
    Make sure your PACKAGESITE variable is right, and then try
    Code:
    #ftp $PACKAGESITE
     
  15. toweris

    toweris New Member

    Messages:
    14
    Thanks Received:
    0
    I typed that command and it gave following:
    Code:
    PACKAGESITE Underfined variable
     
  16. Beastie

    Beastie Active Member

    Messages:
    1,929
    Thanks Received:
    339
    Did you define it? How/in which file? And did you define it while being logged in as root?

    The root user uses the C shell, so it would normally be defined in /root/.cshrc as
    Code:
    setenv PACKAGESITE <repository>
    (or manually every time before issuing the pkg_add command).
     
  17. formateur_fou

    formateur_fou New Member

    Messages:
    53
    Thanks Received:
    6
    You can set this variable in root's .cshrc with this command (if you use csh for this account):
    Code:
    # echo 'setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8-stable/Latest/' >> /root/.cshrc

    I assume you're using FreeBSD 8.X because of your previous posts.

    You need to log in again for the variable to be set.
     
  18. formateur_fou

    formateur_fou New Member

    Messages:
    53
    Thanks Received:
    6
    There is a similar thread:
    http://forums.freebsd.org/showthread.php?t=31711
    But in your case, you should fix the possibility to install packages before going ahead. Do what we told you before, then try to install rsync that has no dependency at all.
     
  19. toweris

    toweris New Member

    Messages:
    14
    Thanks Received:
    0
    I've done that and tried to install gnome and it gave the following:
    Code:
    pkg_add: can't stat package file 'gnome2'
     
  20. bbzz

    bbzz Member

    Messages:
    868
    Thanks Received:
    123
    source ~/.cshrc after you change .cshrc.
     
  21. toweris

    toweris New Member

    Messages:
    14
    Thanks Received:
    0
    Still the same issue. What should I do?
     
  22. Beastie

    Beastie Active Member

    Messages:
    1,929
    Thanks Received:
    339
    You're still using the wrong URL perhaps. This should work. But it seems only the i386 version is available, so that may be the reason?

    Copy the appropriate URL to the .cshrc file (without the "gnome2.tbz" of course).
     
  23. toweris

    toweris New Member

    Messages:
    14
    Thanks Received:
    0
    I have copied that url to file , but still same text:
    Code:
    pkg_add: can't stat package file 'gnome2'


    Like I undestand before running pkg_add -r gnome2 comand I need to run setenv PACKAGESITE command.
     
  24. jb_fvwm2

    jb_fvwm2 Active Member

    Messages:
    1,630
    Thanks Received:
    162
    If you check /usr/ports/x11/gnome2/distinfo (not there), you'll see it is thusly a "metaport", installs other programs. So that is probably the reason there is no package.
    Code:
     portmaster -d -B -PP x11/gnome2 
    or some variant of it... (A newbie myself with respect to installing metaports with a pkg installing tool...)
     
  25. Beastie

    Beastie Active Member

    Messages:
    1,929
    Thanks Received:
    339
    jb_fvwm2, metaports too have their packages. How would you install the entire Xorg, GNOME, Xfce, etc. from packages otherwise (other than installing everything manually of course)?
    And the gnome2.tbz package exists (for i386 at least).

    toweris, as I said in my last post, the package doesn't seem to exist for the AMD64 architecture. Do you get the same error with other packages? Also can you run the
    % fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Latest/gnome2.tbz
    command on your shell successfully?