How to Install and Uninstall libunsafe-mock-java Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: December 24,2024

1. Install "libunsafe-mock-java" package

This tutorial shows how to install libunsafe-mock-java on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install libunsafe-mock-java

2. Uninstall "libunsafe-mock-java" package

Please follow the step by step instructions below to uninstall libunsafe-mock-java on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove libunsafe-mock-java $ sudo apt autoclean && sudo apt autoremove

3. Information about the libunsafe-mock-java package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: libunsafe-mock-java
Priority: optional
Section: universe/java
Installed-Size: 62
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Java Maintainers
Architecture: all
Source: unsafe-mock
Version: 8.0-1
Filename: pool/universe/u/unsafe-mock/libunsafe-mock-java_8.0-1_all.deb
Size: 8120
MD5sum: 88156fb9f47ae11eac81196a1007afa1
SHA1: d6e1b63a168a3ff864c66476b16584f8e2ebeaf8
SHA256: 8a2e9664a121659f4879d05be08948fe3b074cc2c5e4eaaeffa65b7683aae272
Description-en: Java library providing backported sun.misc.Unsafe class from JDK 8
sun.misc.Unsafe is Java class in Oracle JDKs that provides a collection of
methods for performing low-level, unsafe operations.
.
Although the class and all methods are public, use of this class is limited
because only trusted code can obtain instances of it.
.
unsafe-mock provides a current version of sun.misc.Unsafe that
supports all APIs up through the new "fences" API in Java 8 EA builds
b71 and later. This Unsafe is a copy of the one from Java 8 EA build
b71, and it is expected that if you want to build against it you put
it in javac's bootclasspath. You are responsible for determining in
your own code whether you can access Unsafe and which methods are
available; this library is only to provide an all-inclusive Unsafe
against which you can compile using JDKs <= 8.0.
Description-md5: 7747000a8a1a405687763d9e244947fb
Homepage: https://github.com/headius/unsafe-mock
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu