Termux-packages: Dpkg error, to upgrade packages

Created on 22 Sep 2019  路  10Comments  路  Source: termux/termux-packages

Hi, I'm new to Termux, I'm having problems installing packages by applying the pkg upgrade command.

when I apply the command it gives the following error

dpkg:error processing archive /data/data/com.termux/files/usr/var/cache/apt/archives/procps_3.3.15-6i686.deb (--unpack):
unable to reate 麓/data/data/com.termux/files/usr/include/proc/version.h.dpkh-new(while processing./data/data/com.termux/filesusr/include/proc/version.h`): File exists
Errors were encountered while processing:
/data/data/com.termux/files/usr/var/cache/apt/archives/procps_3.3.15-6_i686.deb
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an errir code (1)

invalid

All 10 comments

It looks like it failed because /data/data/com.termux/filesusr/include/proc/version.h already exists, could removing it (or renaming it to something else) work if you try again?

@RossComputerPerson He may have procps-dev installed. Though I can't understand why package is unpacked as it already marked as conflicting:

TERMUX_PKG_BREAKS="procps-dev"
TERMUX_PKG_REPLACES="procps-dev"

OP's error message is either edited or written by hand which isn't good.....

Ok, so procps-dev should be uninstalled if exists, if not - remove conflicting headers manually. Then procps should be upgraded correctly.

look for the address of the file that is supposedly created (proc) at the following address / data / data / com.termux / filesusr / include / proc / version.h`) but that address does not exist (proc and version.h) are directories that do not exist in the "include" folder

TERMUX_PKG_BREAKS="procps-dev"
TERMUX_PKG_REPLACES="procps-dev"

I didn't find the location of those files if you can specify the path please to try

TERMUX_PKG_BREAKS="procps-dev"
TERMUX_PKG_REPLACES="procps-dev"

is from https://github.com/termux/termux-packages/blob/master/packages/procps/build.sh#L9, something that you don't need to change.

You should remove /data/data/com.termux/files/usr/include/proc/version.h if it exists.

/v You should remove /data/data/com.termux/files/usr/include/proc/version.h if it exists.

the file doesn't exist, it's the weird thing

Then don't remove if it doesn't exist.... obviously.

I will completely erase termux and clear the cache and start from scratch to test if the error persists.

If the error persists, could you help me with a local host or teamviewer?

and try everything included check folder by folder locate the error try even delete the entire folder

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thurask picture thurask  路  3Comments

zejji picture zejji  路  4Comments

bbtdev picture bbtdev  路  3Comments

ILadis picture ILadis  路  3Comments

divyakutty picture divyakutty  路  3Comments