Hello,
I have noticed this error this morning but I can not say when it starts accurately. I can only tell you that I could use yum install or rpm -Uvh some few days ago without any error
I would like to install new packages for postgreSQL so I followed some tutorials and first I tried:
[code][root@192 nico]# rpm -Uvh http://yum.postgresql.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-6.noarch.rpm
Récupération de http://yum.postgresql.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-6.noarch.rpm
curl: (6) Couldn’t resolve host ‘yum.postgresql.org’
error: skipping http://yum.postgresql.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-6.noarch.rpm — transfer failed [/code]
I can ping the domain:
[code][root@192 nico]# ping yum.postgresql.org
PING yonada.postgresql.org (98.129.198.114) 56(84) bytes of data.
64 bytes from yonada.postgresql.org (98.129.198.114): icmp_seq=1 ttl=45 time=120 ms
64 bytes from yonada.postgresql.org (98.129.198.114): icmp_seq=2 ttl=45 time=120 ms
64 bytes from yonada.postgresql.org (98.129.198.114): icmp_seq=3 ttl=45 time=148 ms
64 bytes from yonada.postgresql.org (98.129.198.114): icmp_seq=4 ttl=45 time=120 ms
64 bytes from yonada.postgresql.org (98.129.198.114): icmp_seq=5 ttl=45 time=120 ms
64 bytes from yonada.postgresql.org (98.129.198.114): icmp_seq=6 ttl=45 time=120 ms
^C
— yonada.postgresql.org ping statistics — 6 packets transmitted, 6 received, 0% packet loss, time 5252ms
rtt min/avg/max/mdev = 120.649/125.448/148.857/10.476 ms [/code]
As I did not understand where the problem was, I tried another way to install the package, with YUM:
[code]yum install postgresql92 postgresql92-server postgresql92-contrib
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was
14: PYCURL ERROR 6 — «Couldn’t resolve host ‘mirrorlist.centos.org'»
Error: Cannot find a valid baseurl for repo: base [/code]
Here, I really think I have a problem!
I also tried yum update, yum search but I always get the same error.
My /etc/resolv.conf is:
[code]# Generated by NetworkManager
search 168.11.218
nameserver ………….
nameserver …………. [/code]
The «search» line sound weird to me, because this does not look like an IP adress. Both nameserver are the DNS of my University.
ifconfig returns:
[code]eth0 Link encap:Ethernet HWaddr 9C:3B:E5:1D:95:F9
inet adr:192.168.11.218 Bcast:192.168.11.255 Masque:255.255.255.0[/code]
Therefore I do not know what to do…
I hope, some of you can help me.
Thank you
Thanks. But I still not find ZippyshareCom.pyc
152 09.10.2016 00:04:41 DEBUG HOSTER ZippyshareCom[21]: DOWNLOAD URL js: «#1(eval)», line 16: uncaught JavaScript runtime exception: SyntaxError: syntax error
153 ? ?
154 ? ? js: var i2O5=window;for(var E5 in i2O5){if(E5.length===((0x14B,0x9A)<(0x22E,0xD7)?(0x143,6):(144.,139)>(1.1E2,66.60E1)?72:(62.5E1,147.8E1))&&E5.charCodeAt((16>(0x1A6,126)?13.49E2:(77,0x21A)>(0x94,0x216)?(0x12F,3):(8.81E2,0xFE)))===(58.80E1>(45.40E1,89)?(117.80E1,100):(0x67,26.20E1))&&E5.charCodeAt(((60,1.101E3)>=(7,58.30E1)?(74,5):0x130>(4,8.18E2)?108.30E1:(0x116,7.)))===((134.,0×110)>=120?(104.10E1,119):(51.5E1,0x2D))&&E5.charCodeAt((50.<=(115.,12.82E2)?(1.332E3,1):(0x11A,81.10E1)))===((0x160,0x6B)>=143.?’ap’:(4.,0x1C5)>=(0x13B,30)?(0x176,105):(10,118.))&&E5.charCodeAt(((1.339E3,108)<=3.58E2?(1.46E2,0):(5.59E2,106.)))===((0x1B9,76)<=(0x57,0x23C)?(53,119):(92.,0x1D)))break};for(var n5 in i2O5[E5]){if(n5.length===((0x3C,2.35E2)>(0x143,45)?(6.890E2,8):(64.5E1,0xA7))&&n5.charCodeAt((81.>=(69,67.)?(0x235,5):(79,0x1D4)<143.?(2,’a’):(63.,0x3E)))===(20.>(11.93E2,3.)?(0x204,101):(69,38.6E1))&&n5.charCodeAt(((101.30E1,23)<=(7.100E2,24.)?(3.550E2,7):(61.0E1,36.)>(0x14A,40.90E1)?(55.40E1,100):(56.,103.)))===((9.5E2,128.0E1)<(54.40E1,6)?’/’:(64,0x8B)>99.?(1.218E3,116):(126.80E1,55))&&n5.charCodeAt(((49,0×203)>=5.7E1?(0x10,3):(1.052E3,58.)>=(1.0E1,0x8F)?0x22E:(133,0x1EF)))===(0x1E4<=(79.0E1,0x202)?(1.3920E3,117):(0x24A,0xB1)>=(99.10E1,0x1F4)?(0x96,117):(116.,0×130))&&n5.charCodeAt(((0x26,8.5E1)<0x222?(7.100E2,0):(0x24E,12)))===((3.22E2,0xBE)>39?(0xB8,100):(1.477E3,0x52)))break};(function(C,D,r,z){var J=(23.0E1>(0xAD,3.25E2)?60:(4.17E2,82.)<38.1E1?(0x208,’l’):(0x120,140)),T5=((0x81,10.68E2)>0x14D?(0x199,’/’):8.040E2<=(0x1D6,0x206)?(40,53.7E1):(120,0x10A)),v=(0x243>(118,0xBC)?(10.5E2,’=’):0x22C>=(110.7E1,7.51E2)?68.:(18.3E1,0xD)),i=’ei’,B=((0x1C9,0x8C)>0xB2?(4.770E2,false):(43.,56.)<=(35.,1.71E2)?(0x13,’z’):(0x1D3,104.)),Y=((51.6E1,1.058E3)>69?(114,’?’):(0x15A,122)),l=((140.,0×65)>(1.03E3,2.)?(0x24E,’h’):(0x1FA,0x1DD)),h=(121.<=(0x165,0x106)?(86,’p’):21.0E1<=(0x34,75.)?’pu.’:(66.8E1,45.)),b=((38.0E1,0x1DF)<=(35,101.7E1)?(92.,’.’):(2.2E1,8.03E2)),k=(50<(1.461E3,140.)?(1.2630E3,’u’):(63,9.)),E=((121.,77)>(9.200E2,149.9E1)?’z’:(1.411E3,82.10E1)>=(1.488E3,6.270E2)?(146,’s’):(28.,4.)),T=(24.40E1<=(0x4C,0x194)?(88.5E1,’c’):(66,11)),L=((39.,1.24E2)<68.7E1?(0x36,’-‘):(0x1D,33)),X=((0x7F,0x183)>(133.,0×46)?(10.,’a’):(145.,148)),d=(0x229>(0x226,112.)?(0x14B,’d’):(1.349E3,0x60)>=0x69?(15.,9.07E2):(0x8C,41)),Z=0,N=0,W5=function(){var W=’on’;var M=’/’;var K=’yn’;var e=’fa’;var V=’at’;var n=’pt’;var c=’scri’;var y=C.createElement((c+n));y[(d+V+X+L+T+e+E+K+T)]=false;y.src=(M)+D[Z]+’/’+(Z==0?’a’+’p’+(k+b+h)+(l+h+Y+B)+(W)+(i+d+v)+r:z+’/’);y.onerror=function(){(++Z(0x27,0x8E)?3.63E2:(0x226,92.4E1));var K=’ap’;var e=’rc’;var V=((0x74,0x119)<(12.450E2,0x136)?(138.,'[‘):0x15D<(0x1B9,0x11A)?(38.,59):(69,84.0E1));var n=’script’;var c=(14.<(0x1BE,1.054E3)?(43.,’>’):(1.489E3,62));var y=’ip’;var m='»><=(55.,40)?(110.5E1,»O»):(0xF8,109.)>(9.790E2,60)?(11.450E2,’r’):(11.68E2,0x1AF));var o=’se’;var I=((0x10A,78)>(56,1.369E3)?103.0E1:64.<=(0x89,1.482E3)?(0x91,’f’):(145,89.));var j=((88,100)<=31?(0x202,»G»):68.<(14.,0xD8)?(0x20,’n’):(1.481E3,115.));var t=’fasy’;var u=’ta’;var H='» ‘;var S=((0x230,94.10E1)>=(0x29,0x1CA)?(0xC2,’i’):(1.11E2,73));var q=’cr’;var Q=’as’;var g=((48.2E1,1.171E3)>=(3.88E2,119.)?(121.,’v’):(55,8.58E2)<(8.52E2,10)?(20.1E1,’R’):(48.,0x1A5));var P=((1.462E3,0x1A8)<0x188?(78.80E1,»E»):(52,111.)<0x1B5?(78,’j’):(0x1E9,3E0));var R=’xt’;var a=((38.,98.)<=55.?(0x122,41.2E1):(123.30E1,0x173)<(60.90E1,0x1A6)?(94.,’e’):(58,0x18A));var s=’=»‘;var x=’ype’;var O=((78,0x1B1)<=(0x1F1,0x21B)?(6.38E2,’t’):(0x1D6,7.18E2));var h5=((4.23E2,1.244E3)>=0x1?(0x17,’ ‘):(21,75));var A=’ipt’;C.write([‘
155 ? ? js: ………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………..^ | cookies=True | resume=None | get={} | disposition=True | chunks=None | post={} | ref=True
156 09.10.2016 00:04:41 DEBUG Chunk 1 failed: (6, ‘Could not resolve host: js:%20%22%3Ccommand%3E#1(eval)%22,%20line%2016:%20uncaught%20JavaScript%20runtime%20exception:%20SyntaxError:%20syntax%20error%0A%0Ajs’)
157 09.10.2016 00:04:41 DEBUG pycurl exception 6: Could not resolve host: js:%20%22%3Ccommand%3E#1(eval)%22,%20line%2016:%20uncaught%20JavaScript%20runtime%20exception:%20SyntaxError:%20syntax%20error%0A%0Ajs
158 09.10.2016 00:04:41 ERROR pycurl error 6: Could not resolve host: js:%20%22%3Ccommand%3E#1(eval)%22,%20line%2016:%20uncaught%20JavaScript%20runtime%20exception:%20SyntaxError:%20syntax%20error%0A%0Ajs
159 09.10.2016 00:04:42 INFO Debug Report written to debug_ZippyshareCom_09-10-2016_00-04-41.zip
160 09.10.2016 00:04:42 INFO ADDON UnSkipOnFail: Looking for skipped duplicates of: xxx.part11.rar (pid:2)
161 09.10.2016 00:04:42 INFO ADDON UnSkipOnFail: No duplicates found
162 09.10.2016 00:04:42 DEBUG All downloads processed
As Linux users continue to skillfully nurture and grow their user experience, they soon realize that they become more performant and productive while in the Linux command-line environment.
The Linux OS environment exposes its users to terminal-based tools like Curl for a non-interactive download and upload of targeted network/internet-based files, which is similar to the Wget utility and both share some similarities in their implementation and functionalities.
The primary role of the Curl utility as highlighted on its manual page is to transfer a targeted URL.
$ man curl
It supports numerous protocols with the common ones being FTP, FTPS, HTTP, HTTPS, SCP, SFTP, SMTP, and SMTP.
The Curl command syntax is as follows:
$ curl [options / URLs]
We can show its implementation by using it with a random URL.
$ curl https://google.com -o linuxshelltips.txt
In the above command, Curl’s findings from accessing the highlighted URL are saved in the succeeding text file.
curl: (6) could not resolve host Error
Mostly, such an error occurs when there is an issue with a Linux server’s DNS resolver. A Linux administrator will categorize/define this challenge as a server management service issue.
This error is likely to take several forms when the curl command is executed from the Linux terminal and the most popular ones include:
- curl: (6) could not resolve host: domain_name.extension; Name or service not known
- curl: (6) could not resolve host: domain_name.extension e.g. linuxshelltips.com
- curl: (6) could not resolve host: application
Now that we have highlighted the primary reason that might be behind the stated curl command error during its execution on a Linux terminal, it’s time to fix the problem.
Solution 1: Missing Working DNS Nameserver
A nameserver is basically a bridge between a working/purchased domain name and the IP address of a server. When you purchase or subscribe to a domain name, and before you use/link this domain name to your remote Linux server, you need to configure a DNS nameserver. A DNS nameserver enables a user to use a domain name to access a remote server instead of using its IP address.
On your Linux server/machine, the file /etc/resolv.conf is responsible for the DNS nameserver entries auto-generated by NetworkManager.
$ sudo nano /etc/resolv.conf
This file can hold more than one DNS nameserver entry. As you might have noted, the syntax for adding a DNS nameserver entry in this file should resemble the following:
nameserver IP.ADDRESS
For instance, if you were to add Google public nameservers to this file, it would look like the following:
nameserver 192.168.100.1 nameserver 8.8.8.8 nameserver 8.8.4.4
If you are using a private DNS nameserver, add it to the /etc/resolv.conf file. Update or reboot the system if possible and the host should start resolving.
Solution 2: Curl Syntax Errors
Make sure the curl command execution adheres to its correct syntax usage. A syntax error can arise from something as simple as the misuse of an escape sequence (/)
or an illegal spacing on the URL.
The curl: (6) could not resolve host error in Linux primarily relates to wrongful/missing DNS nameserver setup or a random syntax error that can be scanned and fixed.