empierre / MyDomoAtHome

MyDomoAtHome - REST interface for ImperoHome with Domoticz (ISS)

Home Page:http://domoticz.com/wiki/ImperiHome

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wget

Znajdzik opened this issue · comments

I have a problem with using the command "wget"
wget -d returns "Error 403"
I used the command "curl -a" but similar problem i have with apt-key.

Seems the host filters the. Key extension, ticket ongoing...

Maybe related? sudo apt-update reports following:
Err:8 https://www.e-nef.com/domoticz/mdah Release
403 Forbidden
and later on:
E: The repository 'https://www.e-nef.com/domoticz/mdah Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

I have the same.
I was able to download gpg.mykey from other computer and forced
sudo apt-key add gpg.mykey

sudo apt-key list
returns:
pub rsa4096 2016-03-02 [SC]
CDD9 6A0B DFFA E454 73B3 8BF2 54CE DB8D A543 5C9B
uid [ unknown] Emmanuel PIERRE epierre@e-nef.com
sub rsa4096 2016-03-02 [E]

but then when running
sudo apt-get update
I receive:
W: The repository 'https://www.e-nef.com/domoticz/mdah Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://www.e-nef.com/domoticz/mdah/Packages 403 Forbidden
E: Some index files failed to download. They have been ignored, or old ones used instead.

Any idea how to fix this?

actually it doesn't work:
I cannot even download key
pi@Domoticz3:~ $ wget https://www.e-nef.com/domoticz/mdah/gpg.mykey
--2019-02-20 22:11:55-- https://www.e-nef.com/domoticz/mdah/gpg.mykey
Resolving www.e-nef.com (www.e-nef.com)... 164.132.235.17, 2001:41d0:301::23
Connecting to www.e-nef.com (www.e-nef.com)|164.132.235.17|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2019-02-20 22:11:55 ERROR 403: Forbidden.

to avoid confusion downloading random image works.

Still not working:
wget -d http://www.e-nef.com/domoticz/mdah/nodejs_4.4.2_armhf.deb
DEBUG output created by Wget 1.18 on linux-gnueabihf.

Reading HSTS entries from /home/pi/.wget-hsts
URI encoding = `UTF-8'
Converted file name 'nodejs_4.4.2_armhf.deb' (UTF-8) -> 'nodejs_4.4.2_armhf.deb' (UTF-8)
--2019-02-20 22:22:14-- http://www.e-nef.com/domoticz/mdah/nodejs_4.4.2_armhf.deb
Translacja www.e-nef.com (www.e-nef.com)... 164.132.235.17, 2001:41d0:301::23
Caching www.e-nef.com => 164.132.235.17 2001:41d0:301::23
Łączenie się z www.e-nef.com (www.e-nef.com)|164.132.235.17|:80... połączono.
Created socket 3.
Releasing 0x00d28058 (new refcount 1).

---request begin---
GET /domoticz/mdah/nodejs_4.4.2_armhf.deb HTTP/1.1
User-Agent: Wget/1.18 (linux-gnueabihf)
Accept: /
Accept-Encoding: identity
Host: www.e-nef.com
Connection: Keep-Alive

---request end---
Żądanie HTTP wysłano, oczekiwanie na odpowiedź...
---response begin---
HTTP/1.1 403 Forbidden
Date: Wed, 20 Feb 2019 21:22:14 GMT
Content-Type: text/html; charset=iso-8859-1
Content-Length: 245
Server: Apache
Set-Cookie: SERVERID31394=2321180|XG3FC|XG3FC; path=/
X-IPLB-Instance: 18199

---response end---
403 Forbidden

Stored cookie www.e-nef.com -1 (ANY) / [expiry none] SERVERID31394 2321180|XG3FC|XG3FC
Registered socket 3 for persistent reuse.
URI content encoding = `iso-8859-1'
Skipping 245 bytes of body: [

<title>403 Forbidden</title>

Forbidden

You don't have permission to access /domoticz/mdah/nodejs_4.4.2_armhf.deb on this server.

] done. 2019-02-20 22:22:14 BŁĄD 403: Forbidden.

~ $ wget https://www.e-nef.com/domoticz/mdah/gpg.mykey
--2019-02-20 22:19:05-- https://www.e-nef.com/domoticz/mdah/gpg.mykey
Translacja www.e-nef.com (www.e-nef.com)... 164.132.235.17, 2001:41d0:301::23
Łączenie się z www.e-nef.com (www.e-nef.com)|164.132.235.17|:443... połączono.
Żądanie HTTP wysłano, oczekiwanie na odpowiedź... 403 Forbidden
2019-02-20 22:19:06 BŁĄD 403: Forbidden.

I have exactly the same behaviour on my Raspberry pi.
I can download http://www.e-nef.com/domoticz/mdah/nodejs_4.4.2_armhf.deb from my Chrome on win10

Confirm fixed, thanks.
Mark

thanks - everything OK