I received a comment on my post “How to play YouTube Video in Ubuntu 9.04?” from jaleshd@gmail.com on August 26, 2009.
The Comment was -
when i click on a video to view it, it says -’could not open location. you may not have permission to open the file. ‘
Then I had doubt it could be due to the wireless network, because now a days most of the people started using Laptops rather than using a Desktop PC. Most of the laptops have In-build wireless, which makes people easy to access network where ever they go.
I had never received such a error because I was using wired Internet connection.
Then I started Google, relating to that of wireless network and then found it is a bug and it has been resolved.
just refer : https://bugs.launchpad.net/ubuntu/+source/totem/+bug/323649
How did the problem solved ?
Download Patch to totem-plugins-2.26.1-0ubuntu5/youtube.py (565 bytes, text/plain) to desktop.
Copied the patch to /usr/lib/totem/plugins/youtube
$ cd /usr/lib/totem/plugins/youtube
$ sudo cp /home/user/Desktop/totem_plugins_youtube.py.patch .
Then patch the file youtube.py with totem_plugins_youtube.py.patch
$ sudo patch /usr/lib/totem/plugins/youtube/youtube.py totem_plugins_youtube.py.patch
Thus the patch fixes the error
”Could not open location; you might not have permission to open the file.” .
Now it works fine.
* I Thank all comments and credit for all my efforts to keep going.
For more info refer : How to play YouTube Video in Ubuntu 9.04?


Hello,
It’s Really Nice post about permission for totem. Many of peoples never consider permission problem totem movie player.
Thanks for sharing information. I am gonna try this out.
Regards,
Mihir
ask4itsolutions.com
Hallo,
I had exactly the same problem and I was able to fix it thanks to your post.
Thank you,
Wilfred
Thanks! This also worked for my Fedora 11 system.
I followed your instructions to the letter, but after entering the cp command,
“sudo cp /home/user/Desktop/totem_plugins_youtube.py.patch”
I receive a message,
“cp: missing destination file operand after `/home/user/Desktop/totem_plugins_youtube.py.patch’”
I’m a fairly new Linux user and can’t seem to figure out what I’m doing wrong. Help?
cp is the copy command in linux.
$ cp /home/user/Desktop/totem_plugins_youtube.py.patch .
where ” /home/user/Desktop/totem_plugins_youtube.py.patch ” is the path where the totem_plugins_youtube.py.patch is available, which is followed by a ” . ” to copy the patch file in present directory.
copy the patch file in /usr/lib/totem/plugins/youtube and then patch the file youtube.py with totem_plugins_youtube.py.patch
$ sudo patch /usr/lib/totem/plugins/youtube/youtube.py totem_plugins_youtube.py.patch
Thus the patch fixes the error.
lol not helpful at all gave me a damn head ache could u pls give instruction that actually work pls thank you.
kmk420@kmk420-desktop:/usr/lib/totem/plugins/youtube$ sudo patch /usr/lib/totem/plugins/youtube/youtube.py totem_plugins_youtube.py.patch
sudo: patch: command not found
kmk420@kmk420-desktop:/usr/lib/totem/plugins/youtube$
yes i put the patch there hmmm i wonder what im doing worng
Are you using Ubuntu 9.04 ?
I found on a web site this command that solves the problem:
sudo apt-get install build-essential gcc
The above builds some missing packages and utilities.
Patch is one of them.
Can you share the website link with us
I am imagining that installing “patch” would cause patch to be installed on your system, and that build-essential has it as a dependency.
All serious programmer types are going to need build-essential, but for the rest of us it is probably enough to say:
sudo apt-get install patch
I wonder if the guy above us is using Ubuntu though… When I type in a command provided as a program by some package, if it’s no installed, it usually says this:
$ wesnoth
The program ‘wesnoth’ is currently not installed. You can install it by typing:
sudo apt-get install wesnoth-core
bash: wesnoth: command not found
I’d expect patch to say this if it weren’t installed:
$ patch
The program ‘patch’ is currently not installed. You can install it by typing:
sudo apt-get install patch
bash: patch: command not found
But everything above this line is speculation.
build-essential depends on all these:
11.4 – libc6-dev (16 (null)) libc-dev (0 (null)) g++ (2 4:4.3.1) make (0 (null)) dpkg-dev (2 1.13.5)
It is a metapackage for pulling in tools required for software development via said deps.
The interesting one is dpkg-dev, which depends on all these:
1.14.24ubuntu1 – dpkg (2 1.14.6) perl5 (0 (null)) perl-modules (0 (null)) cpio (2 2.4.2-2) bzip2 (0 (null)) lzma (0 (null)) patch (2 2.2-1) make (0 (null)) binutils (0 (null)) libtimedate-perl (0 (null)) gnupg (0 (null)) debian-keyring (0 (null)) gcc (16 (null)) c-compiler (0 (null)) build-essential (0 (null)) devscripts (3 2.10.26) dpkg-cross (3 2.0.0) manpages-pl (1 20051117-1)
Notice that patch is among those.
That’s an awful lot of apps to install just for patch, if I’m right.
Still… They’re certainly not harmful programs
how do you download that patch?
[...] it was rather easy. Have a look at the solution provided by M.Srinivasaverman (thanks [...]
Will this work with Mandriva ?
alright!
Thanks! it worked.
It took some trial-and-error to get the correct syntax and spacing, but the above patch works. Thanks!
Hi, I’m also new at this
I copied the text in the link into a text file and saved it. Copied it into the plugin directory… I installed the patch command.
However, when I put in
$ sudo patch /usr/lib/totem/plugins/youtube/youtube.py totem_plugins_youtube.py.patch
The patch command never completes. I can just keep typing endlessly…. at the very least I’m missing some syntax somewhere in the patch command.
Can anyone tell me what I’m doing wrong?
Thanks!
sudo apt-get install nautilus
I can’t paste the patch in to /usr/lib/totem/plugins/youtube….
why???