Debian :: Add APT Repository - String Index Out Of Range

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


ADVERTISEMENT

Ubuntu :: Gnome-Schedule Not Working Anymore - IndexError: String Index Out Of Range

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

Debian :: Expr Index - Treat Space As String Not Array Separator

Mar 13, 2016

Code: Select allmyusername@mycompname:~$ varCurl="abc def curl: ( xyz asdf"
myusername@mycompname:~$ expr index '$varCurl' "curl: ("
4
myusername@mycompname:~$ expr index "$varCurl" "curl: ("
3
myusername@mycompname:~$ echo $varCurl
abc def curl: ( xyz asdf

How to make sure that space is treated as space and string is not treated as array? (I expect value of 9 or 10, not 3 or 4).

View 2 Replies View Related

Programming :: Python Error - List Index Out Of Range (Web Scrapper)

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

Ubuntu Installation :: Synaptic Repository Index Not Found?

Jun 7, 2010

Ubuntu 10.04: I get the following error in Synaptic: "Could not download all repository indexes" "Could not get [URL]...86/Packages.gz 404 Not Found" (translated from Norwegian).[URL].. does not exist, but it does for Karmic (change lucid for karmic in the url). How do I correct this in Synaptic?

View 2 Replies View Related

OpenSUSE :: Add Another Repository To Yast (Index Of /repositories/mozilla/openSUSE_11.2)

Jul 29, 2010

I tried to add another repository to yast (Index of /repositories/mozilla/openSUSE_11.2) and when I was done, Yast gave me an error message and now no repositories show up.
The error is: "/etc/zypp/repos.d/_mozilla_openSUSE_11.2.repo:Line 2 is missing '=' sign"

How do I fix this? How do I get my repos back? I took a look in that directory and this is what is in it:

Code:
[_mozilla/openSUSE_11.2
]
name= mozilla/openSUSE_11.2
enabled=1
autorefresh=1
baseurl=http://download.opensuse.org/repositories/mozilla/openSUSE_11.2
path=/
type=rpm-md
keeppackages=0

View 9 Replies View Related

Ubuntu :: The Repository Is Not Updated And The Previous Index Files Will Be Used.GPG Error

Oct 2, 2010

I keep getting the following error when I run sudo apt-get update:

Quote:

W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error:

[URL] release Release: NO_PUBKEY 5D654504F1A41D5E

View 1 Replies View Related

Programming :: Gawk Statement To Match Range Of Filed For String?

Jul 30, 2010

adf 32 324 100 100 24 234I want a gawk statement to match the above line if lets sayand field between 4 and 6 == 100.

View 2 Replies View Related

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 View Related

Ubuntu :: Error "repository Is Not Updated And The Previous Index Files Will Be Used" While Update

Apr 15, 2011

i used when i open my computer everyday that it asks me for updates... but since 20 days till now it didn't ask me for updates like before .. and today .. i was surfing the web .. then the update manager appeared with a notification to update and asked me to hit the button (RUN THIS ACTION NOW) i did hit it .. but when i switched the detailed view ... all the packages were marked by these words : FAILED or HIT .. Then .. this error message appeared :

[Code]...

i dont know what to do with this issue ... i am not professional in ubuntu ..

View 3 Replies View Related

Ubuntu :: Installing Skype While Loading Repository - "Some Index Files Failed To Download, They Have Been Ignored, Or Old Ones Used Instead"

Oct 18, 2010

Recently i was about to installing skype, for that i have to check the repostory in the software Source...after that it shows me the message for Reload and then it starts Downloading but at the last it shows me the message "Some index files failed to download, they have been ignored, or old ones used instead.
"

View 7 Replies View Related

Ubuntu :: Virtual Box Repository Error "Unable To Find Expected Entry Non-free/source/Sources In Meta-index File"

Dec 25, 2010

I am getting virtual-box repository download error as given below:

Code: Failed to fetch http://download.virtualbox.org/virtualbox/debian/dists/maverick/Release Unable to find expected entry non-free/source/Sources in Meta-index file (malformed Release file?) Some index files failed to download, they have been ignored, or old ones used instead. Repository: deb http://download.virtualbox.org/virtualbox/debian marverick non-free

View 5 Replies View Related

Programming :: Copy String A To String B And Change String B With Toupper() And Count The Chars?

Oct 22, 2010

copy string a to string b and change string b with toupper() and count the chars

View 3 Replies View Related

Networking :: What Are Short Range Link And Long Range Links In Routing

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

Software :: Gnuplot - Combining A Linear Range And Log-scale Range In The Same X-axis?

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

Programming :: Bash Script To Ping A Range Or Own IP-range?

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

Debian :: Updating Index In Apt-show-versions

Jul 8, 2011

When we use either apt-get or/and aptitude to update the index. Does anybody know where this index is kept ?The thing is when I remove an entry or two from /etc/apt/sources.list and run $ sudo aptitude update and then run apt-show-versions -a it still shows me packages whose paths I have deleted.

View 3 Replies View Related

Debian :: Apt-get Update - Index Files Failed To Download

Oct 3, 2010

W: Failed to fetch [URL] Hash Sum mismatch E: Some index files failed to download, they have been ignored, or old ones used instead. Tried 3 different mirrors all have the same error. I assume this is the same issue we had a while back where one package was messing things up. Mirrors I my sources.list

[Code]...

View 9 Replies View Related

Debian :: Apt-get Update Fails To Download All Index Files?

Jul 1, 2011

Does anyone know how to resolve this?

apt-get update
[...]
W: Failed to fetch http://mozilla.debian.net/dists/squeeze-backports/Release  Unable to find expected entry  iceweasel-4.0/binary-i386/Packages in Meta-index file (malformed Release file?)

E: Some index files failed to download, they have been ignored, or old ones used instead.

View 2 Replies View Related

Debian Configuration :: Index.php File DOWNLOADS Instead Of Displaying

Aug 15, 2010

I am running debian lenny running apache (latest) i am trying to make a webserver. i put the index.html file in my www folder. it shows up when i go to my site (localhost) i put an index.php file in my www folder and when i try to go to my site it Downloads the index.php file instead of showing it.

View 2 Replies View Related

Debian :: How To Not Route Certain Range Of IP's Through VPN?

Nov 4, 2010

I am running a VPN (Juniper Networks client) and an ifconfig shows me that its opening a tunnel and also adding routing instructions (I think). Anyway the problem is that when I'm connected to the VPN, I lose route to all my local machines and this is getting annoying when I want to use ssh.Does anyone know how to not route a certain range of IP's through the VPN?

View 4 Replies View Related

Debian :: Input Signal Out Of Range?

Feb 15, 2011

I have been trying unsuccessfully to load Debian on my desktop. I have tried both live and otherwise. Both AMD64 and i386. It seems to be loading fine and then all of a sudden the monitor quits with a sign Input signal out of range. I have tried lots of other live disks and they have worked fine. My monitor is a Hanns G and my video card is NVIDIA GeForce8200. All other stuff very normal. 4 Gigs of RAM. What?

View 4 Replies View Related

Debian :: Starts Up Out Of Range From Monitor?

Jul 2, 2010

i just did a graphic install of debian lenny and when i finished the installation and restarted the computer the grub boot menu appeared and i selected debian and nothing happened the monitor just displayed a message saying "out of range" i have a dell studio xps 1800is it my graphics card (it shouldn't be) how do i start x server in a different resolution (if screen resolution is the problem

View 9 Replies View Related

Debian :: Blocking Hosts - IP Range Access

Sep 3, 2011

How would one block an IP range access to a Debian-based Linux system for say 47.1.1.1. - 48.255.255.255? Would it be with the hosts.deny file? If so, how would it be written in the file? Also, would the system require being restarted for the changes to take effect, after writing to the file?

View 14 Replies View Related

Debian Installation :: Monitor Out Of Sync Range?

Jan 18, 2010

My last Linux install was SUSE 6 on an early ISA based Pentium clone. I'm used to Unix / bash from OS X, MinGW, QNX & BeOS... none of these rely heavily on X. But I'm thinking that Linux is so popular, I'm doing a lot of my Windows stuff under MinGW, why not just stick Linux on and be done with it.So I've polled the various distros, I'm a power-user / dev so Ubuntu doesn't seem like me, and I'm not familiar enough with Linux to go Gentoo just yet, but the way I slim Windows and OS X installs down to just what I need. I love apt-get and like FreeBSD installs I've seen, but want some Linux kernel goodness for my self, so I have chosen Debian.

I grabbed the amd64 build of lenny DVD 1, partitioned up and installed a bare system that I can apt-get the bits I want later.Here's the problem... When the install completes rebooting sends the graphical login to a frequency my old Hanns-G TFT can't handle.I can Ctrl-Alt-F1 back to the terminal or boot in single user mode, and everything seems to be good until you go GUI.Here's what I've tried.

I've renamed /etc/X11/xorg.conf to /etc/X11/xorg.conf.oldI ran dpkg-reconfigure xserver-xorgI've reinstalled using both simple GUI and Expert GUI using both kernelsI've tried adding nvidia-* packages with apt-get and aptitudeI remember there used to be a frequency tuner app for SUSE 6 and XFree86, but it seems that sort of thing is depreciated in modern Linux.Info? My GFX card is an nvidia GT 220, the motherboard is an ASUS P5QL Pro, the Monitor (Hanns-G) is attached via RGB HD-15 D-Sub (sadly that's all I have access to right now) and it's native resolution is 1280x1024 4:3 @ 60Hz, but in heXPee it will sync at that resolution at 60, 70, 72 or 75Hz, though it does get fuzzy at 75Hz.I'm fairly certain that X is working, just not at a frequency my screen can display... how can I fix this from single user, or regular bash terminal?

---edit--- Forgot to mention I ran dpkg-reconfigure on the XServer. :s It didn't offer video drivers, only to change from gb 105 keyboard layout and ps/2 mouse. I set the META key to the logo key while I was there, but it wasn't really helpful in any other way.

View 14 Replies View Related

Debian Installation :: Video Out Of Range After Install?

Jul 13, 2010

After a fresh install of debian 5.05 over net it boots then at end of text lcd screen shows out of range. if start in single user then startx it goes out oif range. How can i set it to a range monitor can do?

View 4 Replies View Related

Debian Installation :: Monitor Signals Out Of Range On Reboot

Mar 15, 2010

I am running an AMD Athlon 64 with an NVIDIA 6600 video built into the motherboard (PC Chips). My monitor is a 19" LCD with a standard VGA connector. I tried installing Lenny and everything went smoothly. However, when I rebooted, the monitor said "Signal out of range." I had this happen with a live CD of another distro too.

View 1 Replies View Related

Security :: Debian 6: Iptables Blocking Certain IP Ranges On A Certain Port Range?

May 16, 2011

I am currently running Debian 6. I would like to know if there is a way and how i would go about blocking a certain IP range from connecting to my server within a certain port range. Say for example.

i want to block ip range 123.123.123.* from connecting to my server on the ports 33000 - 43000. But, i want to allow them to connect on any other port range, and i want to be able to allow connections from my server to the blocked ip range on those same ports. so, blocking incoming only on the above port range.

using iptables.

View 1 Replies View Related

Programming :: Pthread - Take String From The Command Line And Creates A Thread To Print The String

May 3, 2011

I've been trying to understand pthread in C a little better. So I made a simple program that takes in a string from the command line and creates a thread to print the string. I've looked online and copied the basic concepts but there are something things I'm confused about. The programs works just fine, but I have questions. Here's what I have so far.

[Code]....

One thing I'd like to know is why the 3rd argument in the pthread_create function which is my SendMessage function needs to be typecasted to a void pointer and then send the address of the function. Also as for the 4th argument, I would see typecasting to void pointer in some of the pthread examples I saw online, but in my case I'm passing a char pointer, would this be correct? In which case would I ever want to pass a void pointer?

Do I need a pthread_exit(NULL) in my main and in the SendMessage function? If so, why? I added the sleep() function so that I could let the pthread_exit function in my SendMessage function execute first. I simply saw that the online examples on pthread had pthread_exit() in both locations.

View 6 Replies View Related

Debian Hardware :: Intel Atom N450 - Limited CPU Frequency Range

Jul 29, 2010

Got a new HP Mini 210 the other day and things run pretty good using squeeze considering how new it is. The only serious problem is that the available scaling frequencies are mis-reported by the system. Instead of 800, 1.0, 1.3 and 1.6, only 1.0 and up are shown.

acpi-cpufreq is installed and run properly on boot, indeed the system scales nicely from 1.0 through max as needed / dicatated by the ondemand governor. Powertop tells me it spends 99.8% of its time at the "lowest" frequency of 1.0.

In the hopes that a newer kernel would solve things I downloaded 2.6.34-1 and built it, and though it runs very nicely it doesn't solve the problem of the missing 800Mhz frequency. At this point I'm at a bit of loss as to how to proceed. I've asked the same question on the Debian mailing list, because I want to give this the good old college try before submitting a bug report to the kernel mailing list.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved