Add Ubuntu Repository to Debian
You can do this by adding the entries for the Ubuntu repository to a file in /etc/apt/sources.list.d
. But you should not do this, in the same sense that while crossing a busy 6-lane motorway on foot is physically possible, it is generally not recommended.
Mixing repositories from different releases of distributions, even if these distributions use the same package manager, tends not to work well because the different releases have different sets of library versions. While Debian and derivatives (like most distributions) arrange to allow multiple versions of libraries to be installed at the same time, that doesn't always extend to other packages that sometimes depend on specific versions of the libraries. It might work for a while if you don't install development packages (development packages tend to have precise library requirements), but sooner or later you're practically sure to run into conflicts.
Library incompatibilities are why PPA have separate sources of binary packages for each Ubuntu release. Mixing a Debian release and an Ubuntu release is similar to mixing different Ubuntu releases.
If you want Ubuntu's drivers, the simplest solutions install Ubuntu. Low-level software (kernel, core system utilities, X server and libraries) tends to need to form a coherent whole. It's usually safe to install a more recent kernel, but you'll also need to install corresponding X video drivers, at least if you use proprietary drivers, and you need to have the configuration and sometimes patches that the distribution expects (and Debian and Ubuntu don't configure their kernel in exactly the same way).
As a user and as an administrator, there's not all that much difference between Ubuntu and Debian. Whatever reason you have to prefer Debian, if the latest Ubuntu has drivers for your hardware and Debian lags behind (not an uncommon situation if you stick to Debian stable), switching to Ubuntu might be best.
If you absolutely want to have some packages from Ubuntu and some packages from Debian — or if you want to have packages from different releases of Debian/Ubuntu (that's especially useful for developers who want to test their builds on different generation of software), it's fairly painless to install additional Debian/Ubuntu releases in a chroot, so you run one release for your system but can run applications from another release.
Related videos on Youtube
SpecialBomb
I am a freelancing coder that is not very advanced with what he has learned. I am a Linux user that moved from Windows (I hold Windows and Linux/Unix in high regards, I have no favorite, just Linux seems a lot more useful to me for what I do). I actively preform mathematics in research and recreation. I also play PC games, my favorite game being Quake.I enjoy collecting fine writing and drawing utensils, like the Rotring 600 and the Staedtler 925-25/35. I usually have no idea what I'm doing half the time.
Updated on September 18, 2022Comments
-
SpecialBomb over 1 year
I would like to know how I can add the Ubuntu repository with Debian's, as there are some drivers and games I want that aren't on the Debian repository. For example,
darkplaces
is a game I want that is in the Ubuntu repository:quentin@THERIG:~$ sudo apt-get install darkplaces Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package darkplaces
...And it doesn't work.
So, how can I add the Ubuntu repository along or with the Debian repository?
-
muru over 8 yearsApparently there is a
darkplaces
for Debian: packages.debian.org/… -
SpecialBomb over 8 years@muru Thanks, but I would still like to add the whole Ubuntu repository, as I need drivers, and it overall makes my life easier.
darkplaces
was just an example. -
muru over 8 yearsWhy not just install Ubuntu, then?
-
SpecialBomb over 8 years@muru I installed Debian from Ubuntu, and I'd rather not go back.
-
terdon over 8 yearsDebian is not compatible with Ubuntu's repositories. You can add them, just like any other repo, but are likely to cause more problems than you solve. I suggest you post a question about the specific things you are missing instead. There are usually better ways of getting them.
-
-
SpecialBomb over 8 yearsWell, Ubuntu is technically based on Debian, so the abritary things I need will most likely work, like Wi-Fi drivers. I use KDE too, so that stuff will be compatible with everything with KDE on it.
-
alchemy over 2 yearsI want to add a kernel for Proxmox. I can add the repo, but apt update complains it is nort signed. Any way forward?
-
alchemy over 2 yearsnvmd, you can add the repo with the kernel, but ultimately it will error on install.. stackoverflow.com/a/70992979/4240654