23e9b Can't find package - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old April 28th, 2012, 13:44
toweris toweris is offline
Junior Member
 
Join Date: Apr 2012
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't find package

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?

Last edited by DutchDaemon; April 28th, 2012 at 19:55. Reason: Activate a spell-cehcker, please!
Reply With Quote
  #2  
Old April 28th, 2012, 15:35
Beastie Beastie is offline
Senior Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 1,716
Thanks: 1
Thanked 310 Times in 250 Posts
Default

Quote:
Originally Posted by toweris View Post
What i should install to start using packages system?
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.
__________________
May the source be with you!

Last edited by DutchDaemon; April 30th, 2012 at 02:11.
Reply With Quote
  #3  
Old April 28th, 2012, 16:21
toweris toweris is offline
Junior Member
 
Join Date: Apr 2012
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Last edited by DutchDaemon; April 28th, 2012 at 19:56. Reason: Formatting & Style: http://forums.freebsd.org/showthread.php?t=8816 / http://forums.freebsd.org/showthread.php?t=18043
Reply With Quote
  #4  
Old April 28th, 2012, 16:50
bbzz bbzz is offline
Member
 
Join Date: Nov 2010
Location: random
Posts: 832
Thanks: 77
Thanked 120 Times in 80 Posts
Default

You need to be connected to internet.
Reply With Quote
  #5  
Old April 29th, 2012, 13:55
toweris toweris is offline
Junior Member
 
Join Date: Apr 2012
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have checked my interned connection using ping and seems that internet works good.
Reply With Quote
  #6  
Old April 29th, 2012, 14:52
formateur_fou's Avatar
formateur_fou formateur_fou is offline
Junior Member
 
Join Date: Sep 2010
Location: France
Posts: 40
Thanks: 1
Thanked 7 Times in 7 Posts
Default

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.

Last edited by DutchDaemon; April 30th, 2012 at 02:07.
Reply With Quote
  #7  
Old April 29th, 2012, 15:04
toweris toweris is offline
Junior Member
 
Join Date: Apr 2012
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes I'm logged as root. What dependency should I install?

Last edited by DutchDaemon; April 30th, 2012 at 02:07.
Reply With Quote
  #8  
Old April 29th, 2012, 15:11
formateur_fou's Avatar
formateur_fou formateur_fou is offline
Junior Member
 
Join Date: Sep 2010
Location: France
Posts: 40
Thanks: 1
Thanked 7 Times in 7 Posts
Default

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?

Last edited by DutchDaemon; April 30th, 2012 at 02:07. Reason: No space before punctuation [ . , : ; ! ? ) ]
Reply With Quote
  #9  
Old April 29th, 2012, 16:20
toweris toweris is offline
Junior Member
 
Join Date: Apr 2012
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Last edited by DutchDaemon; April 30th, 2012 at 02:08. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #10  
Old April 29th, 2012, 16:22
bbzz bbzz is offline
Member
 
Join Date: Nov 2010
Location: random
Posts: 832
Thanks: 77
Thanked 120 Times in 80 Posts
Default

Quote:
Originally Posted by toweris View Post
I have checked my interned connection using ping and seems that internet works good.
That's great but does name resolving work?

Last edited by DutchDaemon; April 30th, 2012 at 02:08.
Reply With Quote
  #11  
Old April 29th, 2012, 16:27
D4rkSilver D4rkSilver is offline
Junior Member
 
Join Date: Oct 2010
Posts: 57
Thanks: 1
Thanked 4 Times in 4 Posts
Default

It's also possible that the package was broken in the last update of the repository and became temporarily unavailable.
Reply With Quote
  #12  
Old April 29th, 2012, 16:42
formateur_fou's Avatar
formateur_fou formateur_fou is offline
Junior Member
 
Join Date: Sep 2010
Location: France
Posts: 40
Thanks: 1
Thanked 7 Times in 7 Posts
Default

The link you posted is wrong it should be:
ftp://ftp.freebsd.org/pub/FreeBSD/po...stable/Latest/
Yours contains 'and' instead of 'amd'. But as you say that you can't paste it, it might be right on your system.
Can you install other packages?

Last edited by DutchDaemon; April 30th, 2012 at 02:08. Reason: No space before punctuation [ . , : ; ! ? ) ]
Reply With Quote
  #13  
Old April 29th, 2012, 16:58
toweris toweris is offline
Junior Member
 
Join Date: Apr 2012
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by formateur_fou View Post
The link you posted is wrong it should be :
ftp://ftp.freebsd.org/pub/FreeBSD/po...stable/Latest/
Yours contains 'and' instead of 'amd'. But as you say that you can't paste it, it might be right on your system.
Can you install other packages ?
No, I tried to install, bus same issue.

Last edited by DutchDaemon; April 30th, 2012 at 02:09.
Reply With Quote
  #14  
Old April 29th, 2012, 18:44
formateur_fou's Avatar
formateur_fou formateur_fou is offline
Junior Member
 
Join Date: Sep 2010
Location: France
Posts: 40
Thanks: 1
Thanked 7 Times in 7 Posts
Default

Make sure your PACKAGESITE variable is right, and then try
Code:
#ftp $PACKAGESITE
Reply With Quote
  #15  
Old April 29th, 2012, 19:00
toweris toweris is offline
Junior Member
 
Join Date: Apr 2012
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I typed that command and it gave following:
Code:
PACKAGESITE Underfined variable

Last edited by DutchDaemon; April 30th, 2012 at 02:09. Reason: AGAIN: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #16  
Old April 29th, 2012, 19:25
Beastie Beastie is offline
Senior Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 1,716
Thanks: 1
Thanked 310 Times in 250 Posts
Default

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).
__________________
May the source be with you!

Last edited by DutchDaemon; April 30th, 2012 at 02:10. Reason: proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #17  
Old April 29th, 2012, 19:36
formateur_fou's Avatar
formateur_fou formateur_fou is offline
Junior Member
 
Join Date: Sep 2010
Location: France
Posts: 40
Thanks: 1
Thanked 7 Times in 7 Posts
Default

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.

Last edited by DutchDaemon; April 30th, 2012 at 02:10.
Reply With Quote
  #18  
Old April 30th, 2012, 10:23
formateur_fou's Avatar
formateur_fou formateur_fou is offline
Junior Member
 
Join Date: Sep 2010
Location: France
Posts: 40
Thanks: 1
Thanked 7 Times in 7 Posts
Default

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.

Last edited by DutchDaemon; May 1st, 2012 at 01:16. Reason: Reason: No space before punctuation [ . , : ; ! ? ) ]
Reply With Quote
  #19  
Old May 2nd, 2012, 13:57
toweris toweris is offline
Junior Member
 
Join Date: Apr 2012
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've done that and tried to install gnome and it gave the following:
Code:
pkg_add: can't stat package file 'gnome2'

Last edited by DutchDaemon; May 2nd, 2012 at 16:33.
Reply With Quote
  #20  
Old May 2nd, 2012, 14:59
bbzz bbzz is offline
Member
 
Join Date: Nov 2010
Location: random
Posts: 832
Thanks: 77
Thanked 120 Times in 80 Posts
Default

source ~/.cshrc after you change .cshrc.

Last edited by DutchDaemon; May 2nd, 2012 at 16:33.
Reply With Quote
  #21  
Old May 3rd, 2012, 12:44
toweris toweris is offline
Junior Member
 
Join Date: Apr 2012
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bbzz View Post
source ~/.cshrc after you change .cshrc.
Still the same issue. What should I do?

Last edited by DutchDaemon; May 3rd, 2012 at 13:00.
Reply With Quote
  #22  
Old May 3rd, 2012, 12:56
Beastie Beastie is offline
Senior Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 1,716
Thanks: 1
Thanked 310 Times in 250 Posts
Default

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).
__________________
May the source be with you!
Reply With Quote
  #23  
Old May 4th, 2012, 10:37
toweris toweris is offline
Junior Member
 
Join Date: Apr 2012
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Last edited by DutchDaemon; May 4th, 2012 at 18:27. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816 / no color
Reply With Quote
  #24  
Old May 4th, 2012, 12:31
jb_fvwm2 jb_fvwm2 is offline
Senior Member
 
Join Date: Nov 2008
Posts: 1,399
Thanks: 61
Thanked 147 Times in 131 Posts
Default

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...)
Reply With Quote
  #25  
Old May 4th, 2012, 13:08
Beastie Beastie is offline
Senior Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 1,716
Thanks: 1
Thanked 310 Times in 250 Posts
Default

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?
__________________
May the source be with you!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
/usr/bin/ld: cannot find -ldl cell Porting New Software 8 February 14th, 2013 17:53
How to resume installation of a package, after fixing error from dependent package Vitamin Installation and Maintenance of FreeBSD Ports or Packages 4 January 26th, 2012 09:20
find dependencies for linux package SIFE Porting New Software 7 November 27th, 2010 15:15
pkg_add: could not find package pcre-8.02 enweniwe Installation and Maintenance of FreeBSD Ports or Packages 1 August 5th, 2010 14:37
pkg_add -r can not find package estellnb Installation and Maintenance of FreeBSD Ports or Packages 16 March 7th, 2009 11:45


All times are GMT +1. The time now is 09:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0