CentOS 5 :: Splittree "IndexError: List Index Out Of Range"
Jun 6, 2011
I'm building an install CD from CentOS 5.6 and some custom packages using anaconda-11.1.2.224-1.el5 from the CentOS 5.6 repo.
splittree fails with
Traceback (most recent call last):
File "./splittree.py", line 481, in ?
logfile = timber.main()
File "./splittree.py", line 398, in main
[Code].....
View 1 Replies
ADVERTISEMENT
Apr 19, 2011
When I start Gnome-Schedule, it opens and closed right away. Here's the output:
[Code]....
IndexError: string index out of range Also before this happened, I tried to add this command to G.S. but nothing happened when I clicked "Add":
[Code]...
View 1 Replies
View Related
Feb 18, 2011
Having a bit of an issue with Python while trying to write a script to download every rar file on a webpage. The script successfully downloads any link that doesn't contain any spaces, etc. But when it hits a url like: [URL] (Classical Spelling).rar. It fails...I'm sure this is something simple, but I'm so new to python I'm not sure what to do!
Code:
import urllib2
import os
os.system("curl [URL] -i rar|cut -d '"' -f 2 > temp.out ")
infile =open('temp.out', 'r')
for url in infile:
print url
#url = "[URL]"
#url = target
file_name = url.split('/')[-1]
u = urllib2.urlopen(url)
f = open(file_name, 'w')
meta = u.info()
file_size = int(meta.getheaders("Content-Length")[0])
print "Downloading: %s Bytes: %s" % (file_name, file_size)
file_size_dl = 0
block_sz = 8192
while True:
buffer = u.read(block_sz)
if not buffer:
break
file_size_dl += block_sz
f.write(buffer)
status = r"%10d [%3.2f%%]" % (file_size_dl, file_size_dl * 100. / file_size)
status = status + chr(8)*(len(status)+1)
print status,
f.close()
View 7 Replies
View Related
Oct 5, 2015
I have up until now been able to use the add-apt-repository command without issue but right now it keeps returning an IndexError.
The error is below:
Code:
Select allx@y:~$ sudo add-apt-repository ppa:/kilian/f.lux
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 122, in <module>
shortcut = shortcut_handler(line)
[Code] ....
IndexError: string index out of range
I have tried using the command with an empty ppa (just sudo add-apt-repository ppa:) but that comes with the same error. Googling the issue only brought up some bugreports of a month back, and I've used the command with success a few days ago.
View 4 Replies
View Related
Apr 5, 2011
So I have been trying for 8 hours to try to get the index of an element from a list in a Makefile. The problem is that after I get the index using all the methods I have tried, the index cant be used in the "word" function:
for instance:
$(OUTPUT2) : INDEX = $(shell echo $(OUTPUT2) | sed -r -e "s/[ ]+/
/g" | grep -n $@ | sed 's/^([0-9]*):.*/1/')
will create a variable INDEX defined specifically for each member of OUTPUT2, so that each output knows its index. Unfortunately, when I pass this $(INDEX) into word, it doesn't work:
$(OUTPUT2) : $(word $(INDEX), $(INPUT1)) $(word $(INDEX), $(INPUT2))
echo $(INAME) $(TMPBASE) $@
and I get the error:
Makefile:16: *** non-numeric first argument to `word' function: 'num'. Stop.
I feel like if I could just convert a string to a Makefile acceptable number this would just work....
View 6 Replies
View Related
Jun 17, 2010
I haven't been able to update my system as of late, because yum keeps giving me the same error, everytime I try to run updates/install packages.
Code:
Running Transaction
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
[Code]....
Running it with -v did not provide any other information regarding this problem. I tried running yum -clean all as well as package-cleanup --dupes and other various forms and rpm -Va --nodeps --nofiledigest but didn't get any output.
View 6 Replies
View Related
Sep 16, 2010
I've just finished installing Centos 5 on a dell server. Reboot after install - it goes through the motions and gets to the point of loading the GUI. At that point screen goes out of range. I've tried 3 different monitors...
View 1 Replies
View Related
Jun 23, 2009
get me understand the short range and the long range links from routing (and routing protocols') point of view.
View 6 Replies
View Related
Apr 24, 2011
I want to plot a set of data in only one plot.The problem is that some points of the data should be better plotted in a linear scale (lets say 0 to 100,000) but there are other data points that, exceding the value 100,000, would be better plotted in a logarithmic scale, as they goes in the range 100,000 to 500,000,000. Let's say the data is:
Code:
X Y
0 100
10000 80
20000 75
[code]....
Is there a way to plot all these points in the same plot in only one X-axis showing two different ranges in that axis: linear: 0-100,000 logarithmic: 100,000 - 1,000,000,000?The axis would be read, for example, as:
Code:
|-----|-----|-----|-----|-----|-----|-----|-----|-----|
0 20k 40k 60k 80k 100k 1M 10M 100M 1G
(The abbreviations k-M-G are not the important point. Just shown for clarity)
View 2 Replies
View Related
Mar 3, 2010
Basicly just installed a fresh version of Cent OS 5.4 with apache httpd installed automaticly during the installation. The http daemon is running and when navigating to localhost i get the welcome cent os apache page thingy. The problem is when i put an index.html file in /var/http/www then try and navigation to localhost I get a 403 forbidden error.
View 2 Replies
View Related
Nov 22, 2009
Installed CentOS 5.4 x86-64, installation is fine. First bootup after install always fails (after a few messages are displayed) with my monitor showing an "out of range" message.I know exactly what to fix (sync values in xorg.conf) and what values to enter there, but what I can't figure out is, how to get to a stupid prompt! Or a smart one for that matter.Also, I do get a message (before the "out of range" message) from CentOS, telling me to "press I for interactive startup" - but all that does is print as many "I" on the screen as I press. And did they really mean "I" and not "i" for this?
I hear great things about CentOS and if you can help with this silly question - How to get to a prompt - as easy as it probably is for you all, it would help me a lot.
View 1 Replies
View Related
Apr 11, 2011
I want to build a bash script, which can ping a range IP adresses which will be filled in by the admin. If there is no IP-adress filled in, then the script must ping the subnet where the system is logged on. So if my ip is 192.168.1.6, then the script must ping from 192.168.1.1 till 192.168.1.255 Or else, if there is given a beginning and ending ip it must ping that!
The first part of the bash script is to ping a given range (see below). But there is one problem, how can I tell the script to ping from $begin till $end, [..] is of course wrong! But what must be filled in there???
echo "Enter beginning IP-adres:"
read begin
echo "Enter ending IP-adres:"
read end
ping -c 1 $begin [..] $end
The second part is to find my own ip and ping the whole range.. How to do that? I only can find my own IP, but I cant ping the whole range,, how to do that?
#!/bin/bash
ifconfig | grep 'inet addr:' | grep -v '127.0.0.1' |
cut -d: -f2 | awk '{ print $1 }'
View 11 Replies
View Related
Oct 5, 2009
it says this at start of boot:memory for crash kernell (00x00 'or something like that') not within permisiable rangeotherwise no problems for now, ewerything runs fine.
View 4 Replies
View Related
Jan 21, 2010
I just install CentOS 5.4.
The first message it gives after grub is Quote:Memory for Crash Kernel (0X0 to 0X0) notwithin permissible range
View 1 Replies
View Related
May 26, 2011
I have a DHCP server running on CentOS and for some reason it is assigning the highest number from the IP range as a first one?
- range 192.168.1.20 - 192.168.1.50 - so the first IP on my PC recived from this DHCP server was .50 - is it normal behaviour?
Config file:
View 1 Replies
View Related
Dec 18, 2010
On my CentOS 5.4 box I run dns, ssh, and smtp servers. This box also has to be able to resolve and browse websites. So basically it needs iptable rules for
TCP 22 25 80 443
UDP 53
My question is, which of these services work nicely with connection tracking? I'm a little confused about how connection tracking works. For example say this iptables rule for smtp
Code:
iptables -A INPUT -s 0/0 --sport 513:65535 -d $myip --dport 25 -j ACCEPT
versus
Code:
iptables -A INPUT -s 0/0 --sport 513:65535 -d $myip --dport 25 -m state --state NEW,ESTABLISHED -j ACCEPT
So with connection tracking what exactly does it do that my first iptables rule does not do?
Also for centos is that port range correct? 2.6 Linux kernel randomly chooses a port 513-65535 when it connects to an external smtp server or say browses a site.
View 10 Replies
View Related
Mar 30, 2011
Is it possible to list/find/compare the program versions on a Centos system, against Redhat/Centos Errata/Security/Bug lists? Sort of looking for a way to make sure that all the packages on a system are ok, and not a security risk-- Without having to update every package. A pseudo code, in my mind is:
[Code]...
View 2 Replies
View Related
Oct 16, 2010
I'm guessing Red Hat (and therefor Centos) backport programs like newer Open Offices. Is this true? If so, is there a list of programs that they maintain actively?
View 4 Replies
View Related
Jun 12, 2010
I would like to find documentation on all the available terminal commands and syntax for CentOS 5.
I have googled and looked through the wiki and found nothing about the terminal to my ability.
As for what I am referencing by commands:
sudo: I get the su means super user
cd: change directory
rm: remove, I don't know how to remove folders.
General navigation and using the terminal to create files/directories/open file editor/etc..
View 3 Replies
View Related
Dec 22, 2010
For example, when I want to have an identical line to the above line, I must press "yy" and then P (or p). Could somebody give me the list of such commands.
View 6 Replies
View Related
Jan 25, 2011
The question is how can I get full list of dependencies? I mean full list, not only 1lvl from yum deplist "package name"Full list you can see when you do yum install "packages name"
View 3 Replies
View Related
Feb 20, 2010
I am searching for a program which may be used in order to display a list of modified (non-distribution-default) configuration files. For example, assume we have installed package "example-utility" which uses /etc/example-utility.conf as one of its configuration files. The package provides a default configuration file upon its installation. Assume we have modified /etc/example-utility.conf according to our needs. This file should be included in the listing produced by the program I am looking for.
If such a tool does not exist, I would like to create it. However, I am new to RPM-based systems, and, as such, I am having difficulties finding the necessary documentation. Should I be reading the yum source code? Is there some sort of document describing the package database on RH/CentOS/etc. systems and how 3rd party applications are supposed to work with this database?
View 6 Replies
View Related
Aug 11, 2009
Is there a list of RPMs with known vulnerabilities? I was hoping to run some scripts across the list of currently installed packages vs such a list of vulnerable, to get an idea of what systems need attention. And no, just updating everything is neither an option, nor possible. My servers don't have access (nor do I want them to) to the outside world. Further, being production systems, I can't cause a disruption outside of scheduled down time, and due to running commercial software I can't upgrade some packages due to vendor support issues.
View 1 Replies
View Related
Oct 8, 2009
Howdy. I'm trying to get mailman up and running. I have CentOS 5 (hiab) and qmail. I did yum install mailman and that went fine, I set up apache and can see the mailman pages via htttp.The issue now is with sending mail, whenever I send emails to the list I get: 511 511 sorry, no mailbox here by that name
So I'm assuming my alias files/.qmail fies are in the wrong spot. The contents of my .qmail are (respective to the -admin, -bounces, -etc)
View 3 Replies
View Related
Jan 5, 2010
I would like to know what packages are currently installed in my linux machine. My machine is running CentOS 5.4. There is no GUI. All I have is command line interface.
View 2 Replies
View Related
Jan 7, 2010
We would like to install Asterisk with a minimal centos build. We are writing kick-starts to install packages, does anyone know or have to hand a packages list which installs minimum system requirements for asterisk? Preferably this will not exceed the contents of disk 1
View 4 Replies
View Related
May 7, 2010
Where I may get officially supported list of packages?
or it is the same as: #yum list ?
View 5 Replies
View Related
Jun 7, 2011
i have a Centos 5.5 server that some staff have installed some extra packages on. I'm in the process of building a 5.6 server and want to include the packages / updates from the previous server. Can this be done easily? Was thinking of listing everything in a text file then using yum install to populate anything that the old server has that the new one doesnt?
View 3 Replies
View Related
Feb 20, 2010
I am searching for a program which may be used in order to display a list of "leaf" packages (i.e. installed packages upon which no other installed packages depend), but only those "leaf" packages which are not marked as being mandatory packages belonging to some installed group. For example, assume we have package group "Example" which comprises the following packages:
core-package-one [ MANDATORY; installed; ]
core-package-two [ MANDATORY; installed; ]
extra-package-alpha [ OPTIONAL; installed; not required by any other package; ]
extra-package-beta [ OPTIONAL; installed; required by extra-package-alpha; ]
extra-package-delta [ OPTIONAL; not installed; ]
Format: <package name> [ <group priority>; <install status>; <leaf status> ]
[Code]....
If such a tool does not exist, I would like to create it. However, I am new to RPM-based systems, and, as such, I am having difficulties finding the necessary documentation. Should I be reading the yum source code? Is there some sort of document describing the package database on RH/CentOS/etc. systems and how 3rd party applications are supposed to work with this database?
View 2 Replies
View Related
Mar 22, 2009
I would like to get the output from 'yum list installed' from a standard CentOS 5.1 32bit installation on a Intel desktop PC. I would like to do a diff with my 'yum list installed' to figure out exactly what my company customized. I know the docs here have the list of added, deleted and updated packages going from 5.0 to 5.1, but is there a complete 'yum list installed' list somewhere?
View 1 Replies
View Related