0

i try to calibrate my touchscreen for Raspberry Pi 2B, currently the touch does not work (axis seems like inverted). So i came across this website: https://www.waveshare.com/w/upload/1/1e/RPi_LCD_User_Manual_EN.pdf

It says, for calibration i have to use this code in terminal:

sudo apt-get install xserver-xorg-input-evdev

I did that, but it says it failed to get the files. Unfortunally i have no internet, so how can i solve this problem?

0

1 Answer 1

0

apt-get installs the package you ask for, and any packages which it depends on which you don't already have, and any packages they depend on, and any packages they depend on, and so on. It is possible to replicate this offline but it's a bit of a pain - at least, I don't know of an easy way.

If you can find a way to get the Pi connected to the internet, this will be your easiest option by a long shot.

However if you simply can't, this is an outline of a way to do what you want. I don't have a nicely packaged script to give you -- this will involve some fiddling and manual work. Expect to encounter problems.

In short, the tool apt-rdepends on an internet-connected machine can recursively find all dependencies, which you can then download, transfer to the offline machine and install with dpkg.

  1. Get another Pi with an identical operating system, connected to the internet
  2. On that Pi, install apt-depends using sudo apt-get install apt-repends
  3. On the same Pi, get the list of dependencies: apt-rdepends xserver-xorg-input-evdev
  4. Download each of those dependencies (debs) in turn using apt-get download <dependency>
  5. Copy them all over to the offline Pi, using a USB stick or whatever.
  6. On the offline Pi, cd to the location of those debs, and install them sudo dpkg -i *.deb

You can script steps 3 and 4 easily enough.

It's probably also possible to do this on non-Pi hardware or with a different OS by telling apt-get to get packages from a different repository but I haven't tried. Perhaps something in /etc/apt/ allows you to configure it, or perhaps apt-get has another way of knowing what platform it's downloading for.

I don't know what will happen if there are awkward version incompatibilities with other things you have installed. Expect trouble if this happens.

2
  • 1
    I suggest to delete this answer and answer it here: How to install updates without internet on Raspberry? (just copy and paste). Otherwise we have already split answers to the same question.
    – Ingo
    Commented Apr 16, 2019 at 8:44
  • @Ingo That other question is not a duplicate, no matter how many people only read the title and think it is :-) It's about dpkg, and this is about apt.
    – Mark Smith
    Commented Apr 16, 2019 at 11:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.