HTTP Error 403: Forbidden (cannot use yt-dlp)

Bug #2038524 reported by Dennis Ignacio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
yt-dlp (Ubuntu)
New
Undecided
Unassigned

Bug Description

The yt-dlp package seems to be outdated. A solution has been posted on https://github.com/yt-dlp/yt-dlp/issues/7811 which states that the updated version 2023.07.06 fixes the issue. Suggestion (if possible): update yt-dlp to version 2023.09.24 which is the latest at the time of writing.

1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu

$ lsb_release -rd
No LSB modules are available.
Description: Ubuntu 23.04
Release: 23.04

2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center

$ apt-cache policy yt-dlp
yt-dlp:
  Installed: 2023.03.04-1
  Candidate: 2023.03.04-1
  Version table:
 *** 2023.03.04-1 500
        500 http://ph.archive.ubuntu.com/ubuntu lunar/universe amd64 Packages
        100 /var/lib/dpkg/status

3) What you expected to happen

When running the yt-dlp command, I expected yt-dlp to download video/audio from Youtube

4) What happened instead

Sample output:

$ yt-dlp -x https://www.youtube.com/watch?v=ODbzI7D0c7c
[youtube] Extracting URL: https://www.youtube.com/watch?v=ODbzI7D0c7c
[youtube] ODbzI7D0c7c: Downloading webpage
[youtube] ODbzI7D0c7c: Downloading android player API JSON
[info] ODbzI7D0c7c: Downloading 1 format(s): 251
[dashsegments] Total fragments: 1
[download] Destination: Wala Man Sa'yo Ang Lahat -Lyrics- | Myrus Ramirez [ODbzI7D0c7c].webm
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (1/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (2/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (3/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (4/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (5/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (6/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (7/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (8/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (9/10)...
[download] Got error: HTTP Error 403: Forbidden. Retrying fragment 1 (10/10)...
[download] Got error: HTTP Error 403: Forbidden. Giving up after 10 retries
ERROR: fragment 1 not found, unable to continue

ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: yt-dlp 2023.03.04-1
ProcVersionSignature: Ubuntu 6.2.0-34.34-generic 6.2.16
Uname: Linux 6.2.0-34-generic x86_64
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Thu Oct 5 17:49:47 2023
InstallationDate: Installed on 2023-10-05 (0 days ago)
InstallationMedia: Ubuntu 23.04 "Lunar Lobster" - Release amd64 (20230418)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: yt-dlp
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dennis Ignacio (dsvignacio) wrote :
Revision history for this message
Unit 193 (unit193) wrote :

G'day!

yt-dlp is up to date in Mantic (well, Debian and mantic-proposed technically) and jammy-backports has a fixed version of yt-dlp, as you can see on https://launchpad.net/ubuntu/+source/yt-dlp

As lunar-backports isn't open for uploads, I guess your options are to either download yt-dlp otherwise, wait for mantic to release, use jammy and yt-dlp from backports, or I guess add jammy-backports and hope nothing breaks.

Revision history for this message
Dennis Ignacio (dsvignacio) wrote :

Thanks for the reply!

I didn't know lunar-backports are now closed. I guess I'm just going to wait for Mantic to arrive. A few days of waiting won't hurt.

Thank you.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.