"E: Unable to locate package youtube/viewer" when trying to install youtube/viewer through terminal

19 respuestas [Último envío]
GrevenGull
Desconectado/a
se unió: 12/18/2017

I have added the package to the repository.

GrevenGull
Desconectado/a
se unió: 12/18/2017

NB! I am on Trisquel Mini

chaosmonk

I am a member!

I am a translator!

Desconectado/a
se unió: 07/07/2017

I assume that have added youtube-viewer

https://github.com/trizen/youtube-viewer

via the PPA with$ sudo add-apt-repository ppa:nilarimogard/webupd8

Now update the repository with$ sudo apt updateand install with$ sudo apt install youtube-viewer

GrevenGull
Desconectado/a
se unió: 12/18/2017

When I do the add-apt-repository command I get this I get a message (screenshot).

Interesting thing I note here is that I can't seem to find youtube-viewer among the given packages.

But that didn't seem to stop me the other time I installed youtube-viewer using this method though..

snapshot1.png
chaosmonk

I am a member!

I am a translator!

Desconectado/a
se unió: 07/07/2017

No problem. Press [Enter] to continue like it says and install youtube-viewer. Just don't install anything else from this PPA without checking the license first to make sure it's free software.

GrevenGull
Desconectado/a
se unió: 12/18/2017

Gotcha! So now it worked. youtube-viewer successfully installed. Was not able to play videos. I changed the text in the "video players field" like you suggested in the other thread, and that did not help.

// I'm creating new post

chaosmonk

I am a member!

I am a translator!

Desconectado/a
se unió: 07/07/2017

This is related enough that it can probably stay in the same thread. Since it's not really a Trisquel issue let's not have too many separate threads.

Which video player do you have under 'video_player_selected'? Make sure that this video player is definitely installed, and then try to play another video with that player (not through youtube-viewer).

GrevenGull
Desconectado/a
se unió: 12/18/2017

Gotcha!

Okay, so I installed VLC and made VLC the "video-player-selected".

I was able to download a youtube-film and play it VLC, if that helps.

Also, I tried your other strategy in the other comment and I didn't get an error message per se it just gave me a lot of information about the film I selected and then asked me to type a number again from the same list of search results.

chaosmonk

I am a member!

I am a translator!

Desconectado/a
se unió: 07/07/2017

Okay, run the UI from a terminal$ gtk-youtube-viewerattempt to play a video, and copy/paste any errors you get here.

chaosmonk

I am a member!

I am a translator!

Desconectado/a
se unió: 07/07/2017

Here's something else to try if you've determined that your video player isn't the issue.

Run the cli (command line interface) for youtube-viewer with$ youtube-viewer

Type a keyword and press enter to search for videos, and then type 1 and press enter to play the first search result. See if that gives you an error message.

calher

I am a member!

Desconectado/a
se unió: 06/19/2015

On Thu, 2017-12-28 at 21:34 +0100, name at domain wrote:
> Gotcha! So now it worked. youtube-viewer successfully installed. Was not able
> to play videos.

youtube-viewer uses a method of fetching YouTube videos that does not
execute Google's proprietary JavaScript in the background the way
youtube-dl does.

Unfortunately, some videos, like music videos, will not play without
proprietary software. And sometimes, it changes over time. One day,
you can download it without JS, and you can't the next. This is why I
now archive ALL videos people send me. I should probably start tagging
them so they're easy to search...

chaosmonk

I am a member!

I am a translator!

Desconectado/a
se unió: 07/07/2017

> Unfortunately, some videos, like music videos, will not play without
> proprietary software.

Oh shit, I didn't consider that. That's a really good point.

GrevenGull, it's possible that the videos you've been using to test youtube-viewer, mpv, and mps-youtube have DRM or something. This is often the case with things like music videos. Try some random personal uploads and see if you have better luck.

GrevenGull
Desconectado/a
se unió: 12/18/2017

Cheers, I'll try that! :)

Edit

That was indeed the case the whole time, it works with personal uploads :)

GrevenGull
Desconectado/a
se unió: 12/18/2017

Aha! Well, I guess I'll do that too :)

But what about youtube-dl, that program is all free, right? I've used it download some videos.

Magic Banana

I am a member!

I am a translator!

Desconectado/a
se unió: 07/24/2010

It is all free... but can execute proprietary JavaScript. Like Firefox.

GrevenGull
Desconectado/a
se unió: 12/18/2017

Okay okay, but when does it do that for example?

Like... you type in "youtube-dl *insert youtube url here*" does that activate javascript?

Pardon me if this is such a nooby question.

Magic Banana

I am a member!

I am a translator!

Desconectado/a
se unió: 07/24/2010

If that YouTube video is behind DRM, yes, youtube-dl executes Google's JavaScript.

GrevenGull
Desconectado/a
se unió: 12/18/2017

Oh, so youtube-dl executes Google's proprietary javascript in order to download specific videos that "is behind DRM". But other youtube videos which are not "behind DRM", youtube-dl is able to download without the use of any javascript?
Fascinating

calher

I am a member!

Desconectado/a
se unió: 06/19/2015

> Like... you type in "youtube-dl *insert youtube url here*" does that activate
> javascript?

Yes.

https://trisquel.info/en/forum/liberated-version-youtube-dl-almost-here

chaosmonk

I am a member!

I am a translator!

Desconectado/a
se unió: 07/07/2017

youtube-viewer is probably included in "and others"