Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do you emerge from tbz2 files?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
mtbvfr
n00b
n00b


Joined: 20 Oct 2015
Posts: 6

PostPosted: Tue Oct 20, 2015 11:19 pm    Post subject: How do you emerge from tbz2 files? Reply with quote

Hi Folks,

I've tried to emerge a .tbz2 file for the cinnamon-translations package.

I used sudo emerge -av --ask-enter-invalid cinnamon-translations-2.6.3.tbz2 with the directory containing the file as the Current Directory and I received the following response.

Code:
*** emerging by path is broken and may not always work!!!

These are the packages that would be merged, in order:

Calculating dependencies \
*** You need to adjust PKGDIR to emerge this package.

... done!

After some searching, I then tried copying the directory (gnome-extra) containing the file to /usr/portage/packages and then made /usr/portage/packages/gnome-extra the Current Directory and then tried executing the command again but the response was the same.

What is the correct way to emerge a package from a tbz2 file?

Thanks, MTB.
Back to top
View user's profile Send private message
khayyam
Advocate
Advocate


Joined: 07 Jun 2012
Posts: 3698

PostPosted: Wed Oct 21, 2015 12:03 am    Post subject: Re: How do you emerge from tbz2 files? Reply with quote

mtbvfr wrote:
What is the correct way to emerge a package from a tbz2 file?

mtbvfr ... assuming the package is keyworded (given this is an ~arch package):

Code:
# emerge --ask --oneshot --usepkgonly =gnome-extra/cinnamon-translations-2.6.3

best ... khay
Back to top
View user's profile Send private message
mtbvfr
n00b
n00b


Joined: 20 Oct 2015
Posts: 6

PostPosted: Wed Oct 21, 2015 12:26 am    Post subject: Re: How do you emerge from tbz2 files? Reply with quote

khayyam wrote:

mtbvfr ... assuming the package is keyworded (given this is an ~arch package):

Code:
# emerge --ask --oneshot --usepkgonly =gnome-extra/cinnamon-translations-2.6.3

best ... khay


Hi khay,

That did it, thanks!!

Now I have 53 more to try. I'll post back if I encounter any more problems.

Regards, MTB.
Back to top
View user's profile Send private message
mtbvfr
n00b
n00b


Joined: 20 Oct 2015
Posts: 6

PostPosted: Wed Oct 21, 2015 12:44 am    Post subject: Reply with quote

Well, it's not working at all actually. :(

The following command is retrieving the package from the Internet.

Code:
# emerge --ask --oneshot --usepkgonly =gnome-extra/cinnamon-translations-2.6.3


I want to use .tbz2 files that already exist on my Hard Drive.

Thanks, MTB.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 5176

PostPosted: Wed Oct 21, 2015 1:30 am    Post subject: Reply with quote

tbz2 is not only use as binary package format, but as classic format to hold source.

so where this tbz2 comes from? it might just be sources.
you should emerge -f =gnome-extra/cinnamon-translatations-2.6.3
if the package is fetch as tbz2, you have download just the sources of the package, and not a gentoo binary package.

if it's that, your bz2 should be put in /usr/portage/distfiles
and if the bz2 match the recorded md5 in the ebuild, you just have to emerge -1 =gnome-extra/cinnamon-translations-2.6.3 and portage will use the one it find instead of downloading it.
Back to top
View user's profile Send private message
mtbvfr
n00b
n00b


Joined: 20 Oct 2015
Posts: 6

PostPosted: Wed Oct 21, 2015 1:52 am    Post subject: Reply with quote

krinn wrote:
tbz2 is not only use as binary package format, but as classic format to hold source.

so where this tbz2 comes from? it might just be sources.
you should emerge -f =gnome-extra/cinnamon-translatations-2.6.3
if the package is fetch as tbz2, you have download just the sources of the package, and not a gentoo binary package.

if it's that, your bz2 should be put in /usr/portage/distfiles
and if the bz2 match the recorded md5 in the ebuild, you just have to emerge -1 =gnome-extra/cinnamon-translations-2.6.3 and portage will use the one it find instead of downloading it.

This is for Calculate Linux but it should work the same shouldn't it?

The following is my latest attempt to install from the Hard Drive.

I copied the sys-auth directory into /usr/portage/distfiles. The sys-auth directory contains the nss-myhostname-0.3.tbz2 file.

The PKGDIR environment variable has no value assigned to it.

I have the root (/) directory as the current directory.

Code:
guest@calculate / $ sudo emerge -v --oneshot =sys-auth/nss-myhostname-0.3


!!! Error fetching binhost package info from 'http://mirror.cnet.kz/calculate/grp/default/x86_64'
!!! <urlopen error [Errno -3] Temporary failure in name resolution>



!!! Error fetching binhost package info from 'http://mirror.cnet.kz/calculate/grp/x/x86_64'
!!! <urlopen error [Errno -3] Temporary failure in name resolution>


These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "=sys-auth/nss-myhostname-0.3".

emerge: searching for similar names...
emerge: Maybe you meant any of these: sys-auth/nss_ldap, sys-auth/consolekit, sys-auth/pambase?

Thanks, MTB.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 5176

PostPosted: Wed Oct 21, 2015 2:26 am    Post subject: Reply with quote

mtbvfr wrote:
This is for Calculate Linux but it should work the same shouldn't it?

How should i know?
You are asking us how a Ford car works and your "vehicle" may not even be a car, but hey it use a modified Ford engine in it ; so it should works the same?

mtbvfr wrote:
The following is my latest attempt to install from the Hard Drive.

I copied the sys-auth directory into /usr/portage/distfiles. The sys-auth directory contains the nss-myhostname-0.3.tbz2 file.

No, if the file is source, it should be in /usr/portage/distfiles/
if the file is a package, it should be in /usr/portage/packages/"package-category"/

Here's an example with gcc
Code:

emerge -1pv gcc
Calculating dependencies... done!
[ebuild   R    ] sys-devel/gcc-4.9.2:4.9::gentoo  USE="cxx nls nptl openmp sanitize (-altivec) (-awt) -cilk -debug -doc (-fixed-point) -fortran -gcj -go -graphite (-hardened) (-libssp) (-multilib) (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" 83 947 KiB

Total: 1 package (1 reinstall), Size of downloads: 83 947 KiB

ls /usr/portage/distfiles/gcc*
/usr/portage/distfiles/gcc-4.9.2.tar.bz2

emerge -1pv --usepkgonly gcc
Calculating dependencies... done!
[binary   R    ] sys-devel/gcc-4.9.2:4.9::gentoo  USE="cxx nls nptl openmp sanitize (-altivec) (-awt) -cilk -debug -doc (-fixed-point) -fortran -gcj -go -graphite (-hardened) (-libssp) (-multilib) (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" 0 KiB

ls /usr/portage/packages/sys-devel/gcc*
/usr/portage/packages/sys-devel/gcc-4.9.2.tbz2

note that i see myself my error, tbz2 is really binary package ; as usual khayyam got it right.

If you have the package, you should note that emerge output is now saying [binary R] instead of [ebuild R]

mtbvfr wrote:
Code:
!!! Error fetching binhost package info from 'http://mirror.cnet.kz/calculate/grp/default/x86_64'
!!! <urlopen error [Errno -3] Temporary failure in name resolution>

If you have a working internet connection and fail to fetch package just because of name resolution error (hence why you try to use binary package to install something as you cannot download it), this can really be solve easy with a valid dns
Code:
echo nameserver 8.8.8.8 >> /etc/resolv.conf
Back to top
View user's profile Send private message
mtbvfr
n00b
n00b


Joined: 20 Oct 2015
Posts: 6

PostPosted: Wed Oct 21, 2015 3:07 am    Post subject: Reply with quote

krinn wrote:

Here's an example with gcc
Code:

emerge -1pv gcc
Calculating dependencies... done!
[ebuild   R    ] sys-devel/gcc-4.9.2:4.9::gentoo  USE="cxx nls nptl openmp sanitize (-altivec) (-awt) -cilk -debug -doc (-fixed-point) -fortran -gcj -go -graphite (-hardened) (-libssp) (-multilib) (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" 83 947 KiB

Total: 1 package (1 reinstall), Size of downloads: 83 947 KiB

ls /usr/portage/distfiles/gcc*
/usr/portage/distfiles/gcc-4.9.2.tar.bz2

emerge -1pv --usepkgonly gcc
Calculating dependencies... done!
[binary   R    ] sys-devel/gcc-4.9.2:4.9::gentoo  USE="cxx nls nptl openmp sanitize (-altivec) (-awt) -cilk -debug -doc (-fixed-point) -fortran -gcj -go -graphite (-hardened) (-libssp) (-multilib) (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" 0 KiB

ls /usr/portage/packages/sys-devel/gcc*
/usr/portage/packages/sys-devel/gcc-4.9.2.tbz2


It doesn't matter whether I have a copy of the tzb2 file in /usr/portage/distfiles/ or I have copied "package-category"/"tzb2 file" to the /usr/portage/packages/ directory, the outcome is basically the same. It is still trying to download from the Internet location instead of using the copy on my Hard Drive.

Code:
guest@calculate / $ sudo emerge -1pv docbook-dsssl-stylesheets


!!! Error fetching binhost package info from 'http://mirror.cnet.kz/calculate/grp/default/x86_64'
!!! <urlopen error [Errno -3] Temporary failure in name resolution>



!!! Error fetching binhost package info from 'http://mirror.cnet.kz/calculate/grp/x/x86_64'
!!! <urlopen error [Errno -3] Temporary failure in name resolution>


These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "docbook-dsssl-stylesheets".

emerge: searching for similar names...
emerge: Maybe you meant app-text/docbook-xsl-stylesheets?

Code:
guest@calculate / $ sudo emerge -1pv --usepkgonly docbook-dsssl-stylesheets


!!! Error fetching binhost package info from 'http://mirror.cnet.kz/calculate/grp/default/x86_64'
!!! <urlopen error [Errno -3] Temporary failure in name resolution>



!!! Error fetching binhost package info from 'http://mirror.cnet.kz/calculate/grp/x/x86_64'
!!! <urlopen error [Errno -3] Temporary failure in name resolution>


These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "docbook-dsssl-stylesheets".

emerge: searching for similar names...
emerge: Maybe you meant app-text/docbook-xsl-stylesheets?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 5176

PostPosted: Wed Oct 21, 2015 3:30 am    Post subject: Reply with quote

mtbvfr wrote:
It doesn't matter whether I have a copy of the tzb2 file in /usr/portage/distfiles/ or I have copied "package-category"/"tzb2 file" to the /usr/portage/packages/ directory, the outcome is basically the same. It is still trying to download from the Internet location instead of using the copy on my Hard Drive.

Because it is not reporting an error with the package binary itself, it report an error trying to contact your binhost
And it then tell you the package you are trying to emerge doesn't exist.

Look:
Quote:
guest@calculate / $ sudo emerge -1pv docbook-dsssl-stylesheets


!!! Error fetching binhost package info from 'http://mirror.cnet.kz/calculate/grp/default/x86_64'
!!! <urlopen error [Errno -3] Temporary failure in name resolution>



!!! Error fetching binhost package info from 'http://mirror.cnet.kz/calculate/grp/x/x86_64'
!!! <urlopen error [Errno -3] Temporary failure in name resolution>



And
Quote:
These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "docbook-dsssl-stylesheets".



So if you have no ebuild for docbook-dsssl-stylesheets, you won't get anywhere.
Is your tree sync or did you install any tree (from a stage3 file) that portage could work with?
Code:

emerge -1pv mqlkfqsdjflk
These are the packages that would be merged, in order:

Calculating dependencies... done!

emerge: there are no ebuilds to satisfy "mqlkfqsdjflk".

It's only when you have an ebuild answering to the name "mqlkfqsdjflk", that portage will download its source or use its binary.

Code:
emerge -1pv docbook-dsssl-stylesheets
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] app-text/docbook-dsssl-stylesheets-1.79::gentoo  272 KiB


Because
Quote:

ls /usr/portage/app-text/docbook-dsssl-stylesheets
ChangeLog Manifest docbook-dsssl-stylesheets-1.79.ebuild files metadata.xml


On a real gentoo (with an internet connection that works), you would just do that
Code:
emerge --sync

This will fetch the tree (the ebuilds) allowing portage to know if any docbook-dssl-styleheets exist
Without any internet connection, you would get this too while installing the stage3 (but the ebuilds in it depends on the date of the stage3 file).
So you should first fix your internet connection, or if you don't use any, read a doc about howto use gentoo (or better, a calculate linux doc) without one.

Should we help you fix your connection or you don't have any?
Back to top
View user's profile Send private message
desultory
Administrator
Administrator


Joined: 04 Nov 2005
Posts: 8484

PostPosted: Wed Oct 21, 2015 3:37 am    Post subject: Reply with quote

Moved from Portage & Programming to Unsupported Software, given:
mtbvfr wrote:
This is for Calculate Linux but it should work the same shouldn't it?
In theory, though the problems appear to be Calculate specific, given the Calculate specific mirrors, and tree issues.
Back to top
View user's profile Send private message
mtbvfr
n00b
n00b


Joined: 20 Oct 2015
Posts: 6

PostPosted: Wed Oct 21, 2015 1:19 pm    Post subject: Reply with quote

krinn wrote:

On a real gentoo (with an internet connection that works), you would just do that
Code:
emerge --sync

This will fetch the tree (the ebuilds) allowing portage to know if any docbook-dssl-styleheets exist
Without any internet connection, you would get this too while installing the stage3 (but the ebuilds in it depends on the date of the stage3 file).
So you should first fix your internet connection, or if you don't use any, read a doc about howto use gentoo (or better, a calculate linux doc) without one.

Should we help you fix your connection or you don't have any?


Hi krinn,

There is no problem with my Internet connection.

I should also mention I am using a Live USB environment.

Are you saying that emerge --sync or emerge-webrsync needs to be used before I can try to install these files in offline mode from a Hard Drive?

Thanks, MTB.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum