23e9b
![]() |
|
|
|
|
|||||||
| Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software). |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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! |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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)
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 |
|
#4
|
|||
|
|||
|
You need to be connected to internet.
|
|
#5
|
|||
|
|||
|
I have checked my interned connection using ping and seems that internet works good.
|
|
#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.
Last edited by DutchDaemon; April 30th, 2012 at 02:07. |
|
#7
|
|||
|
|||
|
Yes I'm logged as root. What dependency should I install?
Last edited by DutchDaemon; April 30th, 2012 at 02:07. |
|
#8
|
||||
|
||||
|
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 Last edited by DutchDaemon; April 30th, 2012 at 02:07. Reason: No space before punctuation [ . , : ; ! ? ) ] |
|
#9
|
|||
|
|||
|
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 Last edited by DutchDaemon; April 30th, 2012 at 02:08. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
|
#10
|
|||
|
|||
|
That's great but does name resolving work?
Last edited by DutchDaemon; April 30th, 2012 at 02:08. |
|
#11
|
|||
|
|||
|
It's also possible that the package was broken in the last update of the repository and became temporarily unavailable.
|
|
#12
|
||||
|
||||
|
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 [ . , : ; ! ? ) ] |
|
#13
|
|||
|
|||
|
Quote:
Last edited by DutchDaemon; April 30th, 2012 at 02:09. |
|
#14
|
||||
|
||||
|
Make sure your PACKAGESITE variable is right, and then try
Code:
#ftp $PACKAGESITE |
|
#15
|
|||
|
|||
|
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 |
|
#16
|
|||
|
|||
|
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>
__________________
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 |
|
#17
|
||||
|
||||
|
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 You need to log in again for the variable to be set. Last edited by DutchDaemon; April 30th, 2012 at 02:10. |
|
#18
|
||||
|
||||
|
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 [ . , : ; ! ? ) ] |
|
#19
|
|||
|
|||
|
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. |
|
#20
|
|||
|
|||
|
source ~/.cshrc after you change .cshrc.
Last edited by DutchDaemon; May 2nd, 2012 at 16:33. |
|
#21
|
|||
|
|||
|
Still the same issue. What should I do?
Last edited by DutchDaemon; May 3rd, 2012 at 13:00. |
|
#22
|
|||
|
|||
|
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! |
|
#23
|
|||
|
|||
|
I have copied that url to file , but still same text:
Code:
pkg_add: can't stat package file 'gnome2' Last edited by DutchDaemon; May 4th, 2012 at 18:27. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816 / no color |
|
#24
|
|||
|
|||
|
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 |
|
#25
|
|||
|
|||
|
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.tbzcommand on your shell successfully?
__________________
May the source be with you! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |