What the loader is actually telling you
The line error while loading shared libraries: libc.so.6: version `GLIBC_2.28' not found does not mean a file is missing. It means the file was found, opened, and read, and then the dynamic loader discovered that the version tag the binary asks for is not present in the symbol table of the library on disk. glibc attaches version labels to symbols; a binary linked against a newer glibc records tags like GLIBC_2.28 next to the symbols it uses. An older glibc simply has no such tag.
So there is nothing to download and nothing to repair. Either the system gets a newer glibc, or the binary gets one that was built for an older one. Everything else people try first is guesswork.
This matters for v2rayN on Linux because the Linux build ships a precompiled core. You are not compiling it against your machine, and you cannot relink it. The core was built on a machine with a particular glibc, and that decision was made upstream.
Read your own glibc version first
One command settles whether your system can run the binary at all:
ldd --version | head -1
The output is a version number and a copyright line. Compare that number against the table below before doing anything else. This table is the whole reason the error appears on some machines and not others.
| Distribution | glibc | Runs a 2.28 build? |
|---|---|---|
| CentOS 7 / RHEL 7 | 2.17 | No |
| Ubuntu 16.04 | 2.23 | No |
| Debian 9 (stretch) | 2.24 | No |
| Ubuntu 18.04 | 2.27 | No |
| Debian 10 (buster) | 2.28 | Yes, exactly |
| CentOS 8 / Rocky 8 / Alma 8 | 2.28 | Yes, exactly |
| Ubuntu 20.04 / Debian 11 | 2.31 | Yes |
| Ubuntu 22.04 | 2.35 | Yes |
| Debian 12 | 2.36 | Yes |
| Alpine (musl) | none | No, different libc entirely |
Two rows deserve attention. Debian 10 and the RHEL 8 family sit on 2.28 exactly, which is why a build tagged GLIBC_2.28 works there and fails on Ubuntu 18.04 one version below. And Alpine has no glibc at all — it uses musl, so the error text differs and the fix is different; a glibc build will not run under musl no matter how new it is.
Read what the binary demands
Confirm the requirement from the binary itself rather than from the error text, which can be truncated in a bug report:
objdump -T ./core | grep -o 'GLIBC_[0-9.]*' | sort -uV | tail -5
That prints every glibc version tag the binary references, sorted, highest last. The highest tag is the ceiling: if your ldd --version is below it, the binary cannot run, and no configuration change to v2rayN will alter that. readelf -V ./core shows the same information in the version-needs section if you want the raw view.
Do this before you touch anything. Half the reports on this error turn out to be a binary demanding 2.34 on a 2.31 system, where a genuinely older core would have worked — and the other half are 2.17 systems six releases behind, where no core build is going to help.
Three situations, three different answers
Your glibc is equal or higher
Then the error is not what it appears. A second copy of libc.so.6 earlier in LD_LIBRARY_PATH can shadow the system one and produce the same message with a newer glibc installed. Check with ldd ./core | grep libc — it prints the resolved path, and if that path is not under /lib or /usr/lib, an environment variable is redirecting it. Unset it and retest before concluding anything about versions.
Your glibc is slightly below the demand
One or two releases behind, on a distribution that is still supported: an older core build is the sane fix, not a libc surgery. v2rayN lets you point at a core binary you supply. Take a core release built before the glibc bump and keep it pinned. Record which version you pinned and why, because the next automatic update will try to replace it and the error will return. If the core table in the app is what is failing to open rather than the core failing to launch, the first log line tells the two apart.
Your glibc is far below the demand
CentOS 7 at 2.17 is the common case. No core build from the current generation will run. The realistic options are a newer distribution, or a container. Do not spend the evening on workarounds for a six-release gap.
Options ranked by how much they can break
- Run the core in a container with host networking. The container carries its own glibc, the host is untouched, and
--network hostkeeps the local proxy port and the TUN behaviour close to a native install. This is the highest-value option for old hosts because it is reversible with one command. - Pin an older core build. No system change, but you inherit whatever bugs that build had, and you must defend the pin against auto-update.
- Move to a newer distribution. Correct and permanent, but it is a migration, not a fix, and it should not be done at the moment you need a working proxy.
- Build the core yourself on the old system. Works, because the linker then matches the local glibc. Costs toolchain time and gives you an artifact nobody else tests. Reasonable only if you already build Go binaries and want a reproducible pin.
Note that a static or musl-linked build belongs to a different family. If the core is distributed as a static binary, it does not consult the system glibc at all and this error cannot occur — so if you are seeing it, you are running the dynamically linked build, and switching to a static one is a legitimate way out when one is available for your architecture.
What makes it worse
Three things get tried constantly and all three convert a clean version mismatch into a broken system.
- Copying a newer
libc.so.6over the system one. glibc is not a leaf library. The loader,libpthread,libmandlibdlare one unit in modern versions, and replacing a single file leaves the system with a loader that cannot start/bin/ls. Recovery needs a rescue shell. This is the single worst outcome in this entire topic. - Pointing
patchelf --set-interpreterat a newer loader. The interpreter changes, but the symbol version the binary needs still is not in the library it will load. You get a different error message and no fix. LD_PRELOADshims that fake the symbol. At best the binary starts and then misbehaves in ways that are far harder to debug than the original message. At worst it crashes inside the Go runtime with a stack that means nothing.
There is no supported path where a user-level change makes an old glibc satisfy a new version tag. The tag exists precisely to prevent that.
GLIBC_2.28 is not GLIBC_ABI_DT_RELR
Both messages mention glibc and both appear on the same distributions, so they get confused. They are different failures with different causes.
GLIBC_2.28 not found | GLIBC_ABI_DT_RELR not found | |
|---|---|---|
| What is missing | A symbol version tag | A relocation format the loader does not understand |
| Introduced by | Newer glibc symbols | Newer binutils and glibc relocations |
| Typical host | CentOS 7, Ubuntu 18.04 | Ubuntu 22.04 and similar, on older binaries |
| Fix direction | Newer glibc, or an older build | Newer loader, or an older build |
The direction of the mismatch is opposite in the two cases, which is why the same advice does not apply. If your message names DT_RELR, the binary is older than your toolchain expects in a specific way — that case has its own write-up.
What to record before changing the system
A version mismatch is decided by four facts. Capture them in one block and a forum reply or an upstream issue becomes answerable instead of a guessing thread.
ldd --version | head -1— your glibc.objdump -T ./core | grep -o 'GLIBC_[0-9.]*' | sort -uV | tail -1— the demand.uname -m— architecture. A mismatch between an aarch64 core and an x86_64 system produces a different error, and mixing the two reports is common.- The exact core filename and where it came from, including whether v2rayN downloaded it or you placed it.
With those four lines, the answer is arithmetic. Without them, every suggestion is a lottery ticket.
Frequently asked
Can I just install a newer glibc with the package manager?
Not independently. glibc is the base of the userland; a distribution ships one version and everything else was built against it. A third-party repository offering a newer glibc will pull the loader, libpthread and libm with it, and the result is usually a system that cannot boot. Use a newer distribution or a container instead.
The error appeared after an update. Was the update wrong?
The update replaced a core built against an older glibc with one built against a newer one. That is normal upstream drift, not a broken release. Restore the previous core and pin it, or move the host forward. Check the first line of the log after the update to confirm which binary is now in place.
Does this happen on ARM boards too?
Yes, and it is harder to spot because prebuilt cores for aarch64 are less common, so people often end up with an x86_64 binary on an ARM host. That produces a different message, about an executable format, not a glibc version. Confirm with uname -m before chasing versions.
Will running the core as root avoid the check?
No. The version check happens in the dynamic loader before main() runs, and it is not a permission decision. Root gets the same message.
Is a static build a real alternative?
When one is published for your architecture, yes — a static binary does not consult the system glibc and this error cannot occur. The trade-off is that static builds can behave differently with the system resolver and with TUN setup, so retest the connection after switching rather than assuming parity.