LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-15-2010, 07:11 AM   #1
brinesharks
LQ Newbie
 
Registered: Jul 2010
Distribution: Kubuntu 10.04
Posts: 11

Rep: Reputation: 0
mv error


I'm trying to move font files (.ttf and .otf) from the download folder to a folder Inkscape can find them in. I tried dragging and dropping them in Dolphin but I don't have permission! So tried in the terminal:

Code:
~$ mv ~/downloads/fonts/*.*tf /usr/share/fonts
mv: cannot stat `/home/bryan/downloads/fonts/*.*tf': No such file or directory

As far as I can tell the directories exist. Any tips?

Last edited by pixellany; 07-15-2010 at 07:18 AM.
 
Old 07-15-2010, 07:19 AM   #2
hendriko
LQ Newbie
 
Registered: Jul 2006
Location: Titusville, Florida
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
If you can't drop and drop with Dolphin, the mv shouldn't work either. Since you say you don't have permission, then try the mv with sudo. Try 'sudo mv ~/downloads...'.
 
Old 07-15-2010, 07:20 AM   #3
shimonl
LQ Newbie
 
Registered: May 2009
Posts: 13

Rep: Reputation: 0
I am still pretty new, but have gotten used to a few good tools.
What I would do in your case is to open mc (midnight commander)
as root, and let it move them. Obviously, root can do anything, right?

The question remains, why were you denied access? Were the files
built with the wrong owner? If you need to, mc can change owner and group.

Hmm.. maybe the access you were denied was to /usr/shar/fonts ?
(I could not tell from your post if the problem was source or target)
In that case mc as root will get the files where you want them.

Good luck!
 
Old 07-15-2010, 07:29 AM   #4
brinesharks
LQ Newbie
 
Registered: Jul 2010
Distribution: Kubuntu 10.04
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for the super fast replies. It looks like I can't paste the files into the /usr/share/fonts directory.

Kubuntu doesn't let you log in as root and I only know how to switch in the console. Even when I do, it still gives me the same error.

~$ sudo mv ~/downloads/fonts/*.ttf /usr/share/fonts
[sudo] password for bryan:
mv: cannot stat `/home/bryan/downloads/fonts/*.ttf': No such file or directory

Starting to get frustrating - I'm working on something I need to get done tonight and off to the printers in the morning...
 
Old 07-15-2010, 07:31 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
@Above.

The destination is not accessible as a normal user. And you can see that OP is trying to move as a normal user. Look at the prompt.

su - should make you root temporarily.
And as you are using Ubuntu, you can use sudo.

OP got here faster.
It seems the error is caused by the wild card interpretation. Can you try copying a single file at a time using sudo?

Last edited by linuxlover.chaitanya; 07-15-2010 at 07:32 AM.
 
Old 07-15-2010, 07:47 AM   #6
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Can you post the output of:

Code:
$ls -la /home/bryan/downloads/fonts
and

Code:
$id
I have simulated your problem on my Ubuntu Lucid VM and your command with sudo works perfectly:

Code:
$sudo mv ~/downloads/fonts/*.*tf /usr/share/fonts
@Chaitanya - think the OP's wild card will work - have tested it and it does seem to work. I suspect the source directory is incorrectly specified.
 
Old 07-15-2010, 07:53 AM   #7
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Hi

I managed to reproduce your error. It happens when you try to move the font files that have already been moved to /usr/share/fonts - hence the No such file or directory error

Try doing:

Code:
$ls /usr/share/fonts
And verify whether the files are there or not.
 
Old 07-15-2010, 07:55 AM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I put your command into code tags so that we can see that there is a space between the source and target (good thing).

<<Sorry--this had an error>>

Code:
[mherring@Ath ~]$ cd play
[mherring@Ath play]$ ls
fonts
[mherring@Ath play]$ ls fonts
[mherring@Ath play]$ touch file1.ttf
[mherring@Ath play]$ touch file2.otf
[mherring@Ath play]$ mv ~/play/*.*tf fonts
[mherring@Ath play]$ ls fonts
file1.ttf  file2.otf
[mherring@Ath play]$
Now working as expected.

Last edited by pixellany; 07-15-2010 at 08:06 AM.
 
Old 07-15-2010, 07:59 AM   #9
brinesharks
LQ Newbie
 
Registered: Jul 2010
Distribution: Kubuntu 10.04
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by alli_yas View Post
Hi

I managed to reproduce your error. It happens when you try to move the font files that have already been moved to /usr/share/fonts - hence the No such file or directory error

Try doing:

Code:
$ls /usr/share/fonts
And verify whether the files are there or not.
Thanks for going to all this effort to help. here's the result - works fine:

~$ ls /usr/share/fonts
truetype type1 X11

They are the folders I expected in there.
 
Old 07-15-2010, 08:03 AM   #10
brinesharks
LQ Newbie
 
Registered: Jul 2010
Distribution: Kubuntu 10.04
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by alli_yas View Post
Can you post the output of:

Code:
$ls -la /home/bryan/downloads/fonts
and

Code:
$id
I have simulated your problem on my Ubuntu Lucid VM and your command with sudo works perfectly:

Code:
$sudo mv ~/downloads/fonts/*.*tf /usr/share/fonts
Here is the result:

Code:
~$ ls -la /home/bryan/downloads/fonts
ls: cannot access /home/bryan/downloads/fonts: No such file or directory
bryan@OfficeE8400:~$ id
uid=1000(bryan) gid=1000(bryan) groups=0(root),4(adm),20(dialout),21(fax),24(cdrom),25(floppy),27(sudo),46(plugdev),103(syslog),105(lpadmin),115(admin),116(sambashare),1000(bryan)
 
Old 07-15-2010, 08:07 AM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
my post above had a fatal error---I edited with another test.
 
Old 07-15-2010, 08:07 AM   #12
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Quote:
~$ ls -la /home/bryan/downloads/fonts
ls: cannot access /home/bryan/downloads/fonts: No such file or directory
Here's your problem right here. The first argument in your mv command is the source files/directories to move(in your case /home/bryan/downloads/fonts/*.*tf).

Now based on the above ls command - you see that your source directory/files don't exist.

Do you know where on the filesystem your font files are located?
 
Old 07-16-2010, 07:04 AM   #13
brinesharks
LQ Newbie
 
Registered: Jul 2010
Distribution: Kubuntu 10.04
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by alli_yas View Post
Here's your problem right here. The first argument in your mv command is the source files/directories to move(in your case /home/bryan/downloads/fonts/*.*tf).

Now based on the above ls command - you see that your source directory/files don't exist.

Do you know where on the filesystem your font files are located?

I understand what you are saying but I don't understand why its says it doesn't exist:

Code:
~$ ls -la /home/bryan
total 2076
drwxr-xr-x 55 bryan bryan    4096 2010-07-16 21:14 .
drwxr-xr-x  5 root  root     4096 2010-07-15 22:16 ..
drwx------  3 bryan bryan    4096 2010-05-10 00:30 .adobe
-rw-r--r--  1 bryan bryan     308 2010-06-19 23:20 agreement.cgi?dlfile=http:%2F%2Fwww.brother.com%2Fpub%2Fbsc%2Flinux%2Fdlf%2Fmfc790cwlpr-1.1.2-2.i386.deb&lang=English_lpr
...
drwxr-xr-x  4 bryan bryan    4096 2010-07-15 21:29 Downloads
...
And it just occurred to me - the command line is case sensitive... I wish I had realised that at midnight last night before I wasted everyone's time...
 
Old 07-16-2010, 07:21 AM   #14
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Code:
drwxr-xr-x  4 bryan bryan    4096 2010-07-15 21:29 Downloads
As you rightly say; Linux is case sensitive. Remember its not just the terminal; in general; Linux is case sensitive.

Did altering the case of the Downloads do the trick? A convention I generally try to follow to prevent case issues; is to name directories in all lower case; unless there's a specific reason not to do so.
 
Old 07-18-2010, 06:34 AM   #15
brinesharks
LQ Newbie
 
Registered: Jul 2010
Distribution: Kubuntu 10.04
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by alli_yas View Post
Code:
drwxr-xr-x  4 bryan bryan    4096 2010-07-15 21:29 Downloads
As you rightly say; Linux is case sensitive. Remember its not just the terminal; in general; Linux is case sensitive.

Did altering the case of the Downloads do the trick? A convention I generally try to follow to prevent case issues; is to name directories in all lower case; unless there's a specific reason not to do so.
The 'Downloads' directory is named like that by Kubuntu. I notice a few directories are. I think I might have created the 'Fonts' directory and made it worse! Altering the case did fix it - I transferred the files and they seem to work. Although one had a .otf rather than .ttf extension which Inkscape doesn't seem to recognise.

Thanks for all your help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] php5 ./configure error: (FILENAME=- FNR=27) fatal error: internal error richinsc Linux - Software 2 07-08-2010 09:20 AM
Memory error: extended error chipkill ecc error rajivdp Linux - Hardware 1 12-07-2009 08:26 AM
Sendmail: eocket wedge , 504 error , dsn error, mail relay connection error djcs Debian 0 03-03-2009 12:41 AM
PHP Error Parse error: parse error, unexpected $ in /home/content/S/k/i/SkinCare4U/h CowanServices Programming 2 12-09-2008 08:26 PM
Suse CUPS error: cups(File)DoRequest error:client-error-bad-request smdonelan Linux - Hardware 6 04-17-2007 06:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration