Are system packages installed into /usr allowed to be broken by source installations into /usr/local?

Karl Richter

My /usr/bin/vlc binary was broken after installing vlc from source into /usr/local prefix. Based on my experience installations into /usr/local didn't affect binaries /usr/bin/[binary], but maybe that was just by accident.

Afaik the effect of a /usr/local installation might be (unstable) shared libraries which are loaded from there before the (stable) ones from /usr/. So, does Ubuntu force package maintainers to load dynamic libraries from /usr/ only?

Resources like hier manpage, BLSF position on /usr/local vs /usr and FHS explanation of Debian answers this question imo since it doesn't define interoperability between binaries in different prefixes.

This is not about the functioning of path lookup priorities (for binaries, shared libraries, ...) which is quite clear for me, but about their usage (constraints, definitions, (pseudo)-standards) in Ubuntu.

muru

Based on my experience installations into /usr/local didn't affect binaries /usr/bin/[binary], but maybe that was just by accident.

You should hang out around Ask Ubuntu more often. :)

Using sudo pip install, which installs to /usr/local, breaking various Python applications is IME by far the most common Python problem I have seen here. If you installed a PyPi package that already had a system package present, it could break whatever was using the system package. Just a few weeks ago I had apt-get-installed certbot break due to a pip-installed certbot plugin.

Packages aren't supposed to officially install anything in /usr/local (exceptions like CA certificates, aside), since that is the system administrator's domain - but that's the only restriction. Clearly if the system administrator is to make full use of the power that /usr/local provides, then things elsewhere in /usr must be able to be affected them. It's not so much that they're "allowed to be broken" by source install; it's more that the system administrator is trusted to know what effects their installing things in /usr/local will have.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Extracted files to /usr, system seems broken now

From Dev

/usr/bin/dpkg returned an error when remove & install broken packages

From Dev

Injecting packages installed from source into apt/synaptic

From Dev

Debian script to download source of installed packages fails

From Dev

apt: Query installed packages from a specific source

From Dev

Get the list of packages that are not installed on a Debian system

From Dev

Is there a way to differentiate between System packages and Manually installed packages in Linux?

From Dev

Broken packages after updating source list to use Xenial instead of Artful

From Dev

Should TFS be storing JavaScript packages installed via NuGet in Source Control?

From Dev

GraphicsMagick not listed in installed packages after install from source

From Dev

GraphicsMagick not listed in installed packages after install from source

From Dev

Find source of all installed packages on Debian based systems

From Dev

Fixing bugs in source of django packages installed through pip

From Dev

How to get source packages from dir in /usr/lib/python2.7/dist-packages/

From Dev

Fully scan and clean broken installations in Ubuntu 12.04

From Dev

how to generate list of installed packages from a full system backup?

From Dev

how to find which packages are installed system-wide in NixOS?

From Dev

Synchronize packages between multiple wsl installations

From Dev

detect broken packages

From Dev

Removing broken packages

From Dev

Broken packages in Linux Mint

From Dev

Broken Debian Packages

From Dev

Linux server broken packages

From Dev

Broken Packages ubuntu 16.04

From Dev

Mono broken packages

From Dev

Broken Packages (No file found)

From Dev

Broken perl packages

From Dev

Which file to add to /usr/local/bin from a program installed from source?

From Dev

Broken symlink /usr/bin/env?

Related Related

  1. 1

    Extracted files to /usr, system seems broken now

  2. 2

    /usr/bin/dpkg returned an error when remove & install broken packages

  3. 3

    Injecting packages installed from source into apt/synaptic

  4. 4

    Debian script to download source of installed packages fails

  5. 5

    apt: Query installed packages from a specific source

  6. 6

    Get the list of packages that are not installed on a Debian system

  7. 7

    Is there a way to differentiate between System packages and Manually installed packages in Linux?

  8. 8

    Broken packages after updating source list to use Xenial instead of Artful

  9. 9

    Should TFS be storing JavaScript packages installed via NuGet in Source Control?

  10. 10

    GraphicsMagick not listed in installed packages after install from source

  11. 11

    GraphicsMagick not listed in installed packages after install from source

  12. 12

    Find source of all installed packages on Debian based systems

  13. 13

    Fixing bugs in source of django packages installed through pip

  14. 14

    How to get source packages from dir in /usr/lib/python2.7/dist-packages/

  15. 15

    Fully scan and clean broken installations in Ubuntu 12.04

  16. 16

    how to generate list of installed packages from a full system backup?

  17. 17

    how to find which packages are installed system-wide in NixOS?

  18. 18

    Synchronize packages between multiple wsl installations

  19. 19

    detect broken packages

  20. 20

    Removing broken packages

  21. 21

    Broken packages in Linux Mint

  22. 22

    Broken Debian Packages

  23. 23

    Linux server broken packages

  24. 24

    Broken Packages ubuntu 16.04

  25. 25

    Mono broken packages

  26. 26

    Broken Packages (No file found)

  27. 27

    Broken perl packages

  28. 28

    Which file to add to /usr/local/bin from a program installed from source?

  29. 29

    Broken symlink /usr/bin/env?

HotTag

Archive