This post is automatically translated with LLM. The translation content has NOT been reviewed and may contain errors.
Bumblebee is an auxiliary tool for NVidia graphics cards on the Linux platform. It enables NVidia cards to utilize Optimus technology, allowing laptops to render with dedicated graphics while displaying through integrated graphics—essentially hardware-accelerated graphics switching.
This is an extremely useful tool, but it once suffered a severe bug (though three years ago) where a single space caused the deletion of the /usr
directory for a large number of Ubuntu users.
It happened during a Git update, with changes in install.sh
:
@@ -37,7 +37,7 @@
# You should have received a copy of the GNU General Public License
# along with bumblebee. If not, see <http://www.gnu.org/licenses/>.
#
-BUMBLEBEEVERSION=1.4.31
+BUMBLEBEEVERSION=1.4.32
ROOT_UID=0
@@ -348,7 +348,7 @@ case "$DISTRO" in
ln -s /usr/lib/mesa/ld.so.conf /etc/alternatives/gl_conf
rm -rf /etc/alternatives/xorg_extra_modules
rm -rf /etc/alternatives/xorg_extra_modules-bumblebee
- rm -rf /usr /lib/nvidia-current/xorg/xorg
+ rm -rf /usr/lib/nvidia-current/xorg/xorg
ln -s /usr/lib/nvidia-current/xorg /etc/alternatives/xorg_extra_modules-bumblebee
ldconfig
;;
Due to a single space, the deletion command shifted from targeting /usr/lib/nvidia-current/xorg/xorg
to deleting two separate directories: /usr
and /lib/nvidia-current/xorg/xorg
. The /usr
directory is where all your programs reside, including apt-get
...
On GitHub, programmers worldwide furiously mocked this bug:
"So I have to format my hard drive first?" "Yes, I usually use Bumblebee for formatting."
"Did you install Bumblebee?" "Yes, but I backed up the usr folder..."
"They will kill us, but they won't kill our usr"
"usr, why did you leave me?"
"Bumblebee, I need to have a word with you"
"usr? Gone since June 2011, lol."
SELinux and AppArmor are speechless...
"I installed Bumblebee on the company server, now I need to work..."
"I rarely back up, but when I do, it's always too late..."
Jobs: "Ever heard of Bumblebee?" Gates: "I recommend every Linux user install it."
Low Orbit Bumblebee Cannon:
"What's wrong with adding a space after /usr? That path doesn't exist." "I forgot to wrap the path in quotes..."
"My Führer, we installed Bumblebee on your machine."