[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can't parse interface line '#015'



On Fri, Mar 07, 2014 at 11:53:24AM +1100, Scott Ferguson wrote:
> On 07/03/14 01:59, lina wrote:
> > Hi,
> > 
> >>From syslog, it shows me:
> > 
> > Mar  6 10:47:05 debian NetworkManager[6729]: Error: Can't parse
> > interface line '#015'
> > 
> > # cat -n interfaces
> >      1	# This file describes the network interfaces available on your system
> >      2	# and how to activate them. For more information, see interfaces(5).
> >      3	
> 
> # nano -c /etc/network/interfaces
> will show line numbers for you

That's exactly what 'cat -n' does.

> I'm guessing you have blank lines in your interfaces file. So open that
> file for editing with the above command. You should find you can move
> the cursor to line 15 *even* though there's nothing written on it. If so
> use the backspace key to delete those lines - until the cursor reaches
> the end of line 13 (behind the "p" in "dhcp"). Then press "F2" to save,
> followed by "y" to save changes.

By standard practice #015 doesn't represent decimal 15, but octal 15,
which equates to decimal 13, the very line that was causing the problem.

Cheers,
Tom

-- 
The more the merrier.
		-- John Heywood

Attachment: signature.asc
Description: Digital signature


Reply to: