[Galaxy Tab 2 Q&A, Help & Troubleshooting] boterhoeksken:
Hello,

as a newbie i've tried to search for a good tutorial on installing a new OS (read: most recent Android version supporting my device) on my GT2-P3100.

I've found that good tutorial here <https://lineageosroms.com/espresso3g> via another thread on this forum

I followed the tutorial, and everything went well , until the point where it says "build a LineageOS installation package. ".

I've tried a whole day of putting the puzzle peaces together on my Ubuntu 20.04 LTS, but ended up with a lot of errors.

At that point i thought: why building the ROM, if you can just download the latest build.

So i took the build at the top of the page <https://lineageosroms.com/espresso3g/#build>

LineageOS 13.0 – [ Android 6.0.1 (Marshmallow) ] 21-01-2018

And i tried to install that zip via TWRP .

But then i end up with the error "system partition has unexpected contents after OTA update" and "updater process ended with ERROR: 7"

Then i started to read another thread on this forum about the above error (on another device), and the discussion was about ADB versions and TWRP versions.

So my question is a bit:

How do i know

1. The lastest nightly build at the top of the page <https://lineageosroms.com/espresso3g> is still OK

2. How do i know which ADB/TWRP combination works (and do you also need to have the correct combination for the above ZIP file, or is there no relation between install file and ADB/TWRP combination?

So now my device has a recovery twrp , and i don't really know what to do next to get my GT2-P3100 again up and running :-(

My system settings:

* Ubuntu 20.04 LTS with all build tools described on <https://lineageosroms.com/espresso3g/#build> (JDK 1.7 from zulu)

*ADB (1.0.39) and fastboot (1:8.1.0) installed via apt-get-install (adb is ok, but fastboot does not list my device)

* twpr recovery 3.4.0 (this was the most recent file on the page link from the tutorial <https://dl.twrp.me/espresso3g/>)

* android kernel (reference on the tutorial :https://github.com/LineageOS/android_kernel_samsung_espresso10/tree/cm-13.0 ) : did not know how to link to this, and how to install all tools to build this correctly (seems like a whole fuzz , and success rate is linked to the Ubuntu version you use, so i did not try (yet) )

* i found somewhere an explanation about a local manifest in roomservice.xml, and tried to add such a file with the reference to the above kernel, but i don't know how this roomservice works, so i don't think it changed something when i executed the build commands.

A couple of remarks on that good tutorial :

* There is a chicken-and-egg problem on the page <https://lineageosroms.com/espresso3g/#extract-proprietary-blobs> : if you install LineageOS for the first time, you will never be able to extract content from device.

* on the page of <https://lineageosroms.com/extracting-blobs-from-zips> : It says you need to execute the extract script in the device root dir, but that script in the CM-13 branch does not accept a parameter as input (i.e. adb commands in the script are executed , even if you add the mounted system dir from the blob as a parameter on the command line). I took a peak in a more recent extract file from the structure on <https://github.com/LineageOS/androi...890-common/blob/lineage-17.1/extract-files.sh> , but i did not want to execute that extract file, as it refers to a whole bunch of so-files which are not part of the extract file in the cm-13 branch.

* python2 needs to be installed on your system, and you need to link to it via the command "python". Otherwise you get errors during one of the build steps.

Then also a couple of question about the errors and warnings during the build process, so i understand more how it works:

* command brunch espresso3g : including vendor/cm/vendorsetup.sh : why is it including this common vendor setup scriptfile, if i have put all samsung files and directories (manually, since the extract script did not work) i could find on github under the directories of device and vendor ; do i need to execute some scripts so that Breakfast/Brunch knows it needs to pic the vendorscript from my device ? Since i put all those files manually: do i need to execute some script which updates all the makefiles in those directories?

* Trying dependencies-only mode on a non-existing device tree? Why do i get this warning?

* find: ‘src/com/android/cts/verifier/backup’: No such file or directory ; what is the easiest way to clean up errors like these: how do you start to search to find who needs this file, and why it is not there?

* after adding the kernel to roomservice.xml, and syncing repo, i got the following error:

error: config is different in /home/joejoe/android/lineage/device/samsung/espresso3g/.git vs /home/joejoe/android/lineage/.repo/projects/device/samsung/espresso3g.git

Why do i get this error?

* brunch espresso3g: make: *** No rule to make target '/home/joejoe/android/lineage/out/target/product/espresso3g/kernel', needed by '/home/joejoe/android/lineage/out/target/product/espresso3g/boot.img'. Stop.

What kernel do i need to include here?