ERROR: exceptions.OSError: [Errno 22]

Martin Pool mbp at canonical.com
Tue Aug 1 07:27:19 BST 2006


On 31 Jul 2006, Sam's Lists <samslists at gmail.com> wrote:
> Hi...
> 
> I have my /etc directory under version control (bzr (bazaar-ng) 0.8.2).
> Everything has worked fine for quite a while...although I pretty much only
> do the most basic things.....
> 
> But now, it's stopped working...
> 
> 401:pts/5 root-t41# bzr
> status                                                    (/etc) 22:12
> bzr: ERROR: exceptions.OSError: [Errno 22] Invalid argument: '/etc/printcap'
>  at /usr/lib/python2.4/site-packages/bzrlib/workingtree.py line 667
>  in get_symlink_target
> zsh: 15623 exit 3     bzr status
> 
> 
> /etc/printcap seems like a normal file...
> 
> 403:pts/5 root-t41# ls -l
> /etc/printcap                                           (/etc) 22:13
> -rw-r--r-- 1 root root 285 2006-07-31 07:35 /etc/printcap
> 
> Any ideas?

Hi Sam,

I think the file has probably changed from being a symlink to a normal
file, perhaps because of a package upgrade, and you are encountering
https://launchpad.net/products/bzr/+bug/3720

Until that is fixed what I suggest you do is

  mv printcap printcap.saved
  bzr rm printcap
  bzr commit -m 'remove printcap'
  mv printcap.saved printcap
  bzr add printcap
  bzr commit -m 'updated printcap'

-- 
Martin




More information about the bazaar mailing list