Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Printer drivers (2) (Read 1193 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Printer drivers (2)

Hello,

I am trying to install the drivers for the Pantum M6500 printer, which I found in the AUR as per the attached screenshot and which I had properly used in the past with the help of the forum (https://forum.artixlinux.org/index.php/topic,3744.msg24222.html#msg24222).

Now, having to do installation on new pc, I found out that the package is obsolete as of May 2022 and the package installation ends with ERROR (as per the attached screenshot) because the source is no longer available. In the AUR comments another driver is indicated but it is not actually found in AUR. 

 I am not experienced enough to be able to solve this on my own,  Can you help me ? Thank you very much in advance.


Re: Printer drivers (2)

Reply #1
It would be nice if you could put up an English translation of your error message, if would help far more in getting answers here.

Re: Printer drivers (2)

Reply #2
It would be nice if you could put up an English translation of your error message, if would help far more in getting answers here.

Sure, here is the translation of the error


"==> ERROR: Unable to download https://global.pantum.com/global/wp-content/uploads/2017/03/Pantum-Ubuntu-Driver-V1-1-5.tar.gz
The operation is aborted."

Tks for any idea


Re: Printer drivers (2)

Reply #4
The package is flagged as out of date with a message:
So tweak the PKGBUILD to accept this source and see how it goes.

Thanks for the reply, but the updated link you suggest for the driver package on AUR is also unavailable and there doesn't seem to be any others...


 

Re: Printer drivers (2)

Reply #6
Try this , I have test package is built fine , but you must test does printer works or not
Code: [Select]
pkgname=pantum_driver
pkgver="1.1.82"
pkgrel="1"
pkgdesc="Pantum M6200-M6500-M6550-M6600-MS6000 Series LINUX Driver V$pkgver"
arch=('x86_64' 'x86' 'i686' 'i386' 'arm' "aarch64")
license=('proprietary')
depends=('sane' 'cups')
source=(
    "https://drivers.pantum.com/userfiles/files/download/PantumUbuntuDriverV1.1.82-1_1644315758635.zip"
)

sha256sums=(
    "9cfb10f35eeae6dce58a633f17d0489538d7d2391b9e40905178a12a65988be2"
)

#noextract=("aeskulap_0.2.2b1-11_amd64.deb" "libdcmtk2_3.6.0-12_amd64.deb" "libwrap0_7.6.q-25_amd64.deb")

extract_deb()
{
ar p $1 data.tar.xz | tar xJ
}

build()
{
    # extract them all under the base /usr dir inside of the source folder
    #extract_deb "aeskulap_0.2.2b1-11_amd64.deb"
    #extract_deb "libdcmtk2_3.6.0-12_amd64.deb"
    #extract_deb "libwrap0_7.6.q-25_amd64.deb"
    cd $srcdir/Pantum\ Ubuntu\ Driver\ V$pkgver-$pkgrel/Resources

    mkdir -p pkg
    cd ./pkg
    #extract_deb "../Pantum-M6500-Series-3.0.$arch.deb"
    extract_deb "../pantum_$pkgver-"$pkgrel"_amd64.deb"
}

package()
{
    # go into the package folder and copy the /usr into the root
    cd ${pkgdir}
    cp -r "${srcdir}/Pantum Ubuntu Driver V$pkgver-$pkgrel/Resources/pkg/"* .

    # move this into that
    # rm -r ./usr/lib64
    cd usr/lib
    #mv -u $arch-linux-gnu/* .
    cp -a $arch-linux-gnu/* .
    rm -r *-linux-gnu*
}
Create problems which don't have solution

Re: Printer drivers (2)

Reply #7
Try this , I have test package is built fine , but you must test does printer works or not
Code: [Select]
pkgname=pantum_driver
pkgver="1.1.82"
pkgrel="1"
pkgdesc="Pantum M6200-M6500-M6550-M6600-MS6000 Series LINUX Driver V$pkgver"
arch=('x86_64' 'x86' 'i686' 'i386' 'arm' "aarch64")
license=('proprietary')
depends=('sane' 'cups')
source=(
    "https://drivers.pantum.com/userfiles/files/download/PantumUbuntuDriverV1.1.82-1_1644315758635.zip"
)

sha256sums=(
    "9cfb10f35eeae6dce58a633f17d0489538d7d2391b9e40905178a12a65988be2"
)

#noextract=("aeskulap_0.2.2b1-11_amd64.deb" "libdcmtk2_3.6.0-12_amd64.deb" "libwrap0_7.6.q-25_amd64.deb")

extract_deb()
{
ar p $1 data.tar.xz | tar xJ
}

build()
{
    # extract them all under the base /usr dir inside of the source folder
    #extract_deb "aeskulap_0.2.2b1-11_amd64.deb"
    #extract_deb "libdcmtk2_3.6.0-12_amd64.deb"
    #extract_deb "libwrap0_7.6.q-25_amd64.deb"
    cd $srcdir/Pantum\ Ubuntu\ Driver\ V$pkgver-$pkgrel/Resources

    mkdir -p pkg
    cd ./pkg
    #extract_deb "../Pantum-M6500-Series-3.0.$arch.deb"
    extract_deb "../pantum_$pkgver-"$pkgrel"_amd64.deb"
}

package()
{
    # go into the package folder and copy the /usr into the root
    cd ${pkgdir}
    cp -r "${srcdir}/Pantum Ubuntu Driver V$pkgver-$pkgrel/Resources/pkg/"* .

    # move this into that
    # rm -r ./usr/lib64
    cd usr/lib
    #mv -u $arch-linux-gnu/* .
    cp -a $arch-linux-gnu/* .
    rm -r *-linux-gnu*
}


Thanks for the reply, then I have some hope !

However, I must confess that I have no idea how to use the code you sent me. I am a simple user and have never been faced with such a problem, despite using Linux for over 20 years.... Can you kindly give me some further suggestions on what to do now ?

Re: Printer drivers (2)

Reply #8
The text is called PKGBUILD.
Copy it and save it with name as "PKGBUIILD" in best an empty directory.
Than run this command in that directory:
Code: [Select]
makepkg
It will create a package based on the instructions contained in the PKGBUILD file which can than be installed with pacman as:
Code: [Select]
pacman -U <filename>

Before running makepkg I would recommend to install packages from base-devel group to make sure basic stuff are on your machine. (Might or might not be needed, try and see)
Code: [Select]
pacman -S base-devel

This is my short description on how to do this.
I just hope someone else will give a better answer.

Re: Printer drivers (2)

Reply #9
The text is called PKGBUILD.
Copy it and save it with name as "PKGBUIILD" in best an empty directory.
Than run this command in that directory:
Code: [Select]
makepkg
It will create a package based on the instructions contained in the PKGBUILD file which can than be installed with pacman as:
Code: [Select]
pacman -U <filename>

Before running makepkg I would recommend to install packages from base-devel group to make sure basic stuff are on your machine. (Might or might not be needed, try and see)
Code: [Select]
pacman -S base-devel

This is my short description on how to do this.
I just hope someone else will give a better answer.

EUREKA ! Many thanks arch_user and sgorava !
I followed exactly your instructions in the previous message and now everything works perfectly, both printer and scanner.  Three days of headache, but I did it thanks to you and the others who wanted to help me.
Grateful.



EDIT: Removed duplicate quote.