Convert apk to deb

Convert APK to DEB

Package an Android APK in a DEB wrapper or run it with Waydroid; native conversion is not available.

Convert APK files online

We don’t have a dedicated online converter for APK to DEB yet, but you can convert APK files online to these formats:

How to convert apk to deb file

A Debian or Ubuntu installer, repository, or software-management workflow may require a .deb file when the available application is an Android .apk. The APK cannot normally be converted into a native Debian application; it must either run inside an Android runtime or be placed inside a DEB wrapper for distribution.

What the APK format is

APK is Android's application-package format, based on ZIP. It can contain compiled Android bytecode, native libraries, resources, an application manifest, permissions, and signing metadata. Android Studio and Gradle produce APKs, and users commonly obtain them when sideloading applications outside Google Play.

An APK expects Android framework APIs, Android permissions, and an Android runtime. Renaming the file or changing its archive extension does not make its code executable by Debian or Ubuntu.

What the DEB format is

DEB is the native package format for Debian, Ubuntu, Linux Mint, and related distributions. A package normally contains a debian-binary marker, a control archive with metadata and maintainer scripts, and a data archive containing installed files. Metadata identifies the package name, version, architecture, dependencies, and installation paths.

dpkg installs individual DEB files; APT resolves dependencies and manages repositories, upgrades, and removal. DEB is suitable for Linux executables, shared libraries, services, desktop files, and scripts built for the target system. It does not translate Android bytecode or provide Android framework dependencies.

How to make a DEB wrapper

If a management system only accepts DEB files, create a package that stores the original APK. This is packaging, not conversion; installing the resulting DEB does not make the Android application a native Linux program.

  1. Install the Debian packaging tools: sudo apt update && sudo apt install dpkg-dev.
  2. Create a package tree and copy the APK into it:
    mkdir -p myapp-deb/DEBIAN myapp-deb/usr/share/myapp
    cp app.apk myapp-deb/usr/share/myapp/
  3. Create myapp-deb/DEBIAN/control with package metadata:
    Package: myapp-apk
    Version: 1.0.0
    Section: misc
    Priority: optional
    Architecture: all
    Maintainer: Package Maintainer <maintainer@example.com>
    Description: Android application archive for an Android runtime
  4. Build the DEB: dpkg-deb --build myapp-deb myapp-apk_1.0.0_all.deb.
  5. Install the local package, if a DEB is required by the target workflow: sudo apt install ./myapp-apk_1.0.0_all.deb. The APK will be placed at /usr/share/myapp/app.apk.

Architecture: all describes the wrapper, which contains no compiled Linux binary; it does not mean that the Android application supports every processor architecture. A production package can add maintainer scripts, desktop integration, or a dependency on a separately installed Android runtime, but those additions still do not convert the APK.

How to run the APK on Linux

Install and configure an Android compatibility environment such as Waydroid on a compatible Linux desktop, then install the APK after starting its Android session:

waydroid session start
waydroid app install /usr/share/myapp/app.apk

Waydroid requires supported kernel features and graphics integration, and its availability depends on the distribution and desktop session. The Android runtime supplies Android APIs; the DEB wrapper only supplies the file. Some applications additionally require Google Play Services, hardware sensors, DRM, Android-specific permissions, or device services unavailable in the runtime.

Conversion limits and alternatives

A native Linux DEB requires a Linux build of the application or a source-code port. An APK containing Android bytecode and Android-native libraries cannot generally be rebuilt as a Linux application by extracting its contents. An APK with only arm64-v8a native libraries may also fail in an x86_64 Android environment unless compatible translation is available.

Inspect an APK locally with Android Studio's Build → Analyze APK or with unzip -l app.apk. Check native-library directories such as lib/arm64-v8a and lib/x86_64 before choosing a runtime.

An Android App Bundle (.aab) is not directly installable. Use Google's bundletool to generate the required APK set, and retain all split APKs when installing an application distributed that way. A single base APK may be incomplete.

Do not rename app.apk to app.deb or submit it to an online archive converter. No reputable online service reliably converts an Android application into a native Debian package; services advertising this usually rename, rearchive, or wrap the file. Keep proprietary APKs and signing material local, and use dpkg-deb for the wrapper and Waydroid or another Android runtime for execution.

Simply put, it is impossible to convert APK to DEB directly.
Thus, there is no so-called apk to deb converter or a free online .apk to .deb conversion tool.

APK vs DEB: format comparison

How the APK and DEB formats compare on the properties that matter most for this conversion.

Comparison of the APK and DEB file formats
Property .APK Android Package .DEB Debian binary package
Open standard No Yes
Compression Both Both
Typical file size Medium Small
Opens in a web browser No No
Further editing Not directly editable Limited
Metadata support Basic Basic
Plain-text readable No No
Best used for Embedding in applications Embedding in applications
Introduced 2008 1995
Developer Google Debian Project
MIME type application/vnd.android.package-archive application/vnd.debian.binary-package