Unable to pull from non-free repo

I am trying to install some packages, and here are the instructions I am following:

1. Install the Required Codecs

Open a terminal and run:

sudo pacman -S ffmpeg libdvdcss
  • ffmpeg: Contains the core MPEG-1/2 decoders.
  • libdvdcss: Needed for encrypted DVDs and some MPEG streams.

2. Ensure Non-Free Repositories Are Enabled

Manjaro separates free and non-free packages. Ensure your pacman.conf has the non-free repository enabled.

  1. Edit the config:
sudo nano /etc/pacman.conf
  1. Uncomment (remove #) these lines:
[non-free]
Include = /etc/pacman.d/mirrorlist
  1. Update the database:
sudo pacman -Sy

When I run this last command, I get this:

:: Synchronizing package databases...
 core is up to date 
 extra is up to date
 multilib is up to date
 non-free.db failed to download
error: failed retrieving file 'non-free.db' from ftp.rz.tu-bs.de : The requested URL returned error: 404
error: failed retrieving file 'non-free.db' from mirrors.up.pt : The requested URL returned error: 404
error: failed retrieving file 'non-free.db' from mirror.vinehost.net : The requested URL returned error: 404
error: failed retrieving file 'non-free.db' from ftp.caliu.cat : The requested URL returned error: 404
error: failed retrieving file 'non-free.db' from mirror.dimensiondata.com : The requested URL returned error: 404
error: failed retrieving file 'non-free.db' from mirror.kamtv.ru : The requested URL returned error: 404
error: failed retrieving file 'non-free.db' from ct.mirror.garr.it : The requested URL returned error: 404
error: failed to synchronize all databases (failed to retrieve some files)

Mod Edit: Improved formatting

I don’t know where you got those instructions - they are utterly wrong.

With Manjaro Linux there is no separation between free and non-free - the provided answer is stupid mix of distributions.

pamac search ffmpeg --no-aur
pamac search libdvdcss --no-aur

When you have found the package names

pamac install libdvdcss ffmpeg

And don’t ask AI - ask the forum, AI don’t know Fedora from Arch or Ubuntu

6 Likes

Manjaro doesn’t have a non-free repository. The 3 repositories Manjaro does have are:

  • core - the core system packages such as kernels, firmware, glib etc
  • extra - other packages such as desktop environments (Plasma, GNOME, XFCE etc) and applications (gimp, firefox etc)
  • multilib - 32-bit packages
3 Likes

What exactly are you trying to install - is it just ffmpeg libdvdcss or are those dependencies to be installed before the thing you are actually trying to install? This feels like it might be an XY problem.

1 Like

Don’t use -Sy, that’s how you end up in a partial update state.

Instead you should use -Syu to update the entire system.

3 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.