Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
--2019-03-15 16:18:25-- http://stretch/main
Resolving stretch (stretch)... failed: Name or service not known.
wget: unable to resolve host address 'stretch'
--2019-03-15 16:18:25-- http://armhf/
Resolving armhf (armhf)... failed: Name or service not known.
wget: unable to resolve host address 'armhf'
--2019-03-15 16:18:25-- http://packages/
Resolving packages (packages)... failed: Name or service not known.
wget: unable to resolve host address 'packages'
--2019-03-15 16:18:25-- http://5.43-2+rpt2+deb9u2/
Resolving 5.43-2+rpt2+deb9u2 (5.43-2+rpt2+deb9u2)... failed: Name or service not known.
wget: unable to resolve host address '5.43-2+rpt2+deb9u2'
FINISHED --2019-03-15 16:18:25--
Total wall clock time: 0.6s
Downloaded: 1 files, 1.3K in 0s (43.0 MB/s)
Wget connected to specified (?) repository, but did not find , as expected , the required package.
Since it failed I did not bother to check the contents of /TEMP_BLUEZ/raspbian.2
Any suggestion how to make the Wget call successful in downloading the ARM version of "bluez" would be greatly appreciated.
The spaces are causing wget to treat each word as a seperate URL. The errors are very clear about that.
Code:
--2019-03-15 16:18:25-- http://stretch/main
Resolving stretch (stretch)... failed: Name or service not known.
wget: unable to resolve host address 'stretch'
--2019-03-15 16:18:25-- http://armhf/
Resolving armhf (armhf)... failed: Name or service not known.
wget: unable to resolve host address 'armhf'
--2019-03-15 16:18:25-- http://packages/
Resolving packages (packages)... failed: Name or service not known.
wget: unable to resolve host address 'packages'
--2019-03-15 16:18:25-- http://5.43-2+rpt2+deb9u2/
Resolving 5.43-2+rpt2+deb9u2 (5.43-2+rpt2+deb9u2)... failed: Name or service not known.
wget: unable to resolve host address '5.43-2+rpt2+deb9u2'
The spaces are causing wget to treat each word as a seperate URL. The errors are very clear about that.
Code:
--2019-03-15 16:18:25-- http://stretch/main
Resolving stretch (stretch)... failed: Name or service not known.
wget: unable to resolve host address 'stretch'
--2019-03-15 16:18:25-- http://armhf/
Resolving armhf (armhf)... failed: Name or service not known.
wget: unable to resolve host address 'armhf'
--2019-03-15 16:18:25-- http://packages/
Resolving packages (packages)... failed: Name or service not known.
wget: unable to resolve host address 'packages'
--2019-03-15 16:18:25-- http://5.43-2+rpt2+deb9u2/
Resolving 5.43-2+rpt2+deb9u2 (5.43-2+rpt2+deb9u2)... failed: Name or service not known.
wget: unable to resolve host address '5.43-2+rpt2+deb9u2'
Your machine is actually ARM architecture isn't it ? Because if it isn't, then the "bluez" package won't work on a different architecture.
That is immaterial for this post - all I need is to be able to retrieve the package for now.
I don't think it is actually. I think it's telling you what's available.
Not according to apt - the command used shows what is / was installed and from where.
The "error" is - it does not identify the package name - just version.
I need to go back to apt man to see if it has an option to identify the package name.
Come to think of it - the best approach would be to be able to read just the repository packages tree.
I have managed to retrieve the entire contents of "Packages" ( plain text) - but it is unmanageable , way too big.
I'll try this next
purge bluez
install bluez
The "install " give the repository link where the package was installed from
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
I think you need to learn to read manual pages and/or learn how to Google things properly, because you don't seem to have a very good grasp on what you're doing/trying to do. And you've included part of your reply in the quote of what I posted before.
You have not even said which Linux distribution you're using...
Looks like distribution / version is rasbpian stretch
From the apt_preferences man page
Quote:
priority 100
to the version that is already installed (if any) and to the
versions coming from archives which in their Release files are
marked as "NotAutomatic: yes" and "ButAutomaticUpgrades: yes" like
the Debian backports archive since squeeze-backports.
priority 500
to the versions that are not installed and do not belong to the
target release.
The spaces are causing wget to treat each word as a seperate URL. The errors are very clear about that.
Code:
--2019-03-15 16:18:25-- http://stretch/main
Resolving stretch (stretch)... failed: Name or service not known.
wget: unable to resolve host address 'stretch'
--2019-03-15 16:18:25-- http://armhf/
Resolving armhf (armhf)... failed: Name or service not known.
wget: unable to resolve host address 'armhf'
--2019-03-15 16:18:25-- http://packages/
Resolving packages (packages)... failed: Name or service not known.
wget: unable to resolve host address 'packages'
--2019-03-15 16:18:25-- http://Obviously /
Resolving 5.43-2+rpt2+deb9u2 (5.43-2+rpt2+deb9u2)... failed: Name or service not known.
wget: unable to resolve host address '5.43-2+rpt2+deb9u2'
Thanks , this may lead to the solution.
I can use option "-i" in wget command to retrieve multiple packages, but I need only one anyway.
However, I am still unable to figure out the correct syntax to "wget" bluez package from repository.
Obviously "5.43-2+rpt2+deb9u2" is not correct, neither is "bluez-5.43-2+rpt2+deb9u2".
I'll keep guessing for now, unless there is away to retieve the name from the repository.
Thanks
Appreciate the reply.
GNU Wget is a free utility for non-interactive download of files from the Web.
It doesn't "retrieve packages", it downloads files.
Arguments to wget are in the form of URLs
As you can see by the errors you got, it adds http:// to a string if it's not there, but the argument should contain, at a minimum, a complete, valid domain name.
Yes, a file being downloaded could contain a package, but you should be using your package manager (apt, yum, etc.) to install packages, not wget.
[I had to pause to answer the phone, so didn't see michaelk's post...]
My objective is to install bluez package for ARM architecture.
It already IS...
Code:
pi@pi:~ $ apt-cache policy bluez
bluez: <--- Package name.
Installed: 5.43-2+rpt2+deb9u2 <--- version *currently installed*
Candidate: 5.43-2+rpt2+deb9u2 <--- *best* available version from all sources
Version table:
*** 5.43-2+rpt2+deb9u2 500 <--- this version available from below sources
500 http://archive.raspberrypi.org/debian stretch/main armhf Packages
100 /var/lib/dpkg/status
5.43-2+deb9u1+b5 500 <--- this version available from below sources
500 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages
The 500/100 is the priority - basically, highest wins - see man apt.
Last edited by descendant_command; 03-15-2019 at 05:27 PM.
It doesn't "retrieve packages", it downloads files.
Arguments to wget are in the form of URLs
As you can see by the errors you got, it adds http:// to a string if it's not there, but the argument should contain, at a minimum, a complete, valid domain name.
Yes, a file being downloaded could contain a package, but you should be using your package manager (apt, yum, etc.) to install packages, not wget.
[I had to pause to answer the phone, so didn't see michaelk's post...]
I cannot use apt-get because it does not recognize "-a=architecture " option.
This is a hack - I am doing this as an interim step so I can get the "bluez" package for ARM architecture running wget from X86 architecture.
It is imperative that I can specify the package name in wget - which so far is eluding me.
The repository is "architecture sensitive" and that is all I care for now.
Addendum
wget is the correct way to accomplish the task, the PROBLEM is that wget processes FILE(s) and "bluez" is PACKAGE NAME , not a file.
Last edited by AnneRanch; 03-16-2019 at 08:07 AM.
Reason: addendum
You really need to work on your web searching skills, has been repeatedly pointed out to you.
I entered bluez into a search engine. www.bluez.org is the first non-ad link.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.