View previous topic :: View next topic |
Author |
Message |
tjfitz n00b


Joined: 10 Aug 2004 Posts: 29 Location: North Carolina
|
Posted: Sat Nov 20, 2004 10:09 pm Post subject: update to x-org dies with "OSError: [Errno 2] No such.. |
|
|
I am trying to emerge the xorg-x11-6.8.0-r3 update, but it keeps dying on me with
Code: | Traceback (most recent call last):
File "/usr/bin/emerge", line 2991, in ?
mydepgraph.merge(mydepgraph.altlist())
File "/usr/bin/emerge", line 1839, in merge
retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug)
File "/usr/lib/portage/pym/portage.py", line 2562, in doebuild
return merge(mysettings["CATEGORY"],mysettings["PF"],mysettings["D"],mysettings["BUILDDIR"]+"/build-info",myroot,mysettings,myebuild=mysettings["EBUILD"])
File "/usr/lib/portage/pym/portage.py", line 2695, in merge
return mylink.merge(pkgloc,infloc,myroot,myebuild)
File "/usr/lib/portage/pym/portage.py", line 6670, in merge
return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup)
File "/usr/lib/portage/pym/portage.py", line 6297, in treewalk
if self.mergeme(srcroot,destroot,outfile,secondhand,"",cfgfiledict,mymtime):
File "/usr/lib/portage/pym/portage.py", line 6536, in mergeme
if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
File "/usr/lib/portage/pym/portage.py", line 6536, in mergeme
if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
File "/usr/lib/portage/pym/portage.py", line 6536, in mergeme
if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
File "/usr/lib/portage/pym/portage.py", line 6536, in mergeme
if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
File "/usr/lib/portage/pym/portage.py", line 6551, in mergeme
elif stat.S_ISREG(mydmode) or (stat.S_ISLNK(mydmode) and stat.S_ISREG(os.stat(mydest)[stat.ST_MODE])):
OSError: [Errno 2] No such file or directory: '/usr/share/fonts/misc/encodings.dir'
|
I have run it in kde, and I have tried killing kdm/X and running it in a console but it does the same thing. How do I fix it? |
|
Back to top |
|
 |
Chidder n00b

Joined: 25 Jan 2004 Posts: 14 Location: Gloucestershire, UK
|
Posted: Sun Nov 21, 2004 6:11 pm Post subject: Probable fix |
|
|
Try changing into /usr/share/fonts/misc and issuing the following command (as root):
Code: |
ln -s ../encodings.dir encodings.dir
|
and then
Code: |
ebuild /usr/share/portage/x11-base/xorg-x11/xorg-x11-6.8.0-r3.ebuild qmerge.
|
This fixes the problem and completes the install.
NB I have not had chance to check that the fonts work properly after this hack.
Regards,
Chidder. |
|
Back to top |
|
 |
tjfitz n00b


Joined: 10 Aug 2004 Posts: 29 Location: North Carolina
|
Posted: Sun Nov 21, 2004 9:30 pm Post subject: |
|
|
I did "cd" into that directory, and when I typed "ls" I saw that there was already a link called encodings.dir, and it was linked to /usr/share/fonts/encodings/encodings.dir. Should I delete this link and remake it? It was blinking red, which I think means that there is a problem with it; namely, I didn't see an "encodings.dir" file in /usr/share fonts/encodings (r in /usr/share/fonts, either). Perhaps not having this file at all is the problem? I will wait for your reply I proceed with the rest of your instructions. Thanks! |
|
Back to top |
|
 |
Chidder n00b

Joined: 25 Jan 2004 Posts: 14 Location: Gloucestershire, UK
|
Posted: Mon Nov 22, 2004 6:40 am Post subject: |
|
|
So long as there is a directory called encodings.dir in /usr/share/fonts then I would delete the bad link and create a new one as per my earlier response.
Regards,
Chidder. |
|
Back to top |
|
 |
tjfitz n00b


Joined: 10 Aug 2004 Posts: 29 Location: North Carolina
|
Posted: Tue Nov 23, 2004 3:44 am Post subject: |
|
|
There isn't an "encodings.dir" in /usr/share/fonts! :
Code: | bash-2.05b# cd /usr/share/fonts/
bash-2.05b# ls
100dpi TTF cyrillic encodings local ukr
75dpi Type1 default fonts.cache-1 misc util
bash-2.05b#
|
Code: | bash-2.05b# locate encodings.dir
/var/tmp/portage/xorg-x11-6.8.0-r3/work/xc/fonts/encodings/large/encodings.dir
/var/tmp/portage/xorg-x11-6.8.0-r3/work/xc/fonts/encodings/encodings.dir
/var/tmp/portage/xorg-x11-6.8.0-r3/image/usr/share/fonts/misc/encodings.dir
/var/tmp/portage/xorg-x11-6.8.0-r3/image/usr/share/fonts/75dpi/encodings.dir
/var/tmp/portage/xorg-x11-6.8.0-r3/image/usr/share/fonts/Type1/encodings.dir
/var/tmp/portage/xorg-x11-6.8.0-r3/image/usr/share/fonts/encodings/large/encodings.dir
/var/tmp/portage/xorg-x11-6.8.0-r3/image/usr/share/fonts/encodings/encodings.dir
/var/tmp/portage/xorg-x11-6.8.0-r3/image/usr/share/fonts/100dpi/encodings.dir
/var/tmp/portage/xorg-x11-6.8.0-r3/image/usr/share/fonts/cyrillic/encodings.dir
/usr/local/share/fonts/encodings.dir
/usr/share/fonts/TTF/encodings.dir
/usr/share/fonts/ukr/encodings.dir
/usr/share/fonts/misc/encodings.dir
/usr/share/fonts/default/encodings.dir
/usr/share/fonts/local/encodings.dir
/usr/share/fonts/cyrillic/encodings.dir
bash-2.05b#
|
Perhaps one of these other locations is more suitable to this purpose? |
|
Back to top |
|
 |
Chidder n00b

Joined: 25 Jan 2004 Posts: 14 Location: Gloucestershire, UK
|
Posted: Tue Nov 23, 2004 7:16 am Post subject: |
|
|
Given your setup I would consider recreating the encodings.dir in /usr/share/fonts/misc, giving it the same user:group and permissions as the others you have found in /usr/share/fonts/*/.
Then try the ebuild command I gave in my first reply.
Regards,
Chidder. |
|
Back to top |
|
 |
kallamej Administrator


Joined: 27 Jun 2003 Posts: 4947 Location: Gothenburg, Sweden
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|