-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to determine which errors are fatal from "Some items failed to download. Downloaded data may be incomplete"? #229
Comments
After some more digging, I realized that the version of apt-offline installed with apt and Ubuntu 20.04 is 1.8.2. I used |
The translation files not being available is not a fatal problem; which is why we don't bail out on those errors. But given they are errors still, we shouldn't suppress them, which is why we report that those payloads failed. Similarly, consider of the 100 .debs being downloaded, one failed. We can't abort on it just for that failure. Which is why we report the user of the failure and still complete the overall operation. As to what all failed, it can be ascertained by running the same operations in |
I understand what you're saying but when one of the non-fatal files are encountered, the process ends with a non-zero exit code making it difficult to create automation with. Is it possible to exit with some sort of special code like "2" to indicate that there were problems downloading some files but the error should be considered non-fatal? |
Currently, it exits with error code apt-offline/apt_offline_core/AptOfflineCoreLib.py Lines 1499 to 1507 in 05e3ed7
But You could use the same error code apt-offline/apt_offline_core/AptOfflineCoreLib.py Lines 1300 to 1345 in 05e3ed7
|
I haven't fully validated but looking at the code, it seems that is what it does. |
Hi there,
I'm running into a similar issue as this one with Ubuntu 20.04. I'm trying to run apt-offline in the context of a script and the
apt-offline get
operation reports a non-zero exit code. When I take the generated bundle to the disconnected machine, I see that I'm able to install my packages correctly so the errors being reported are not true problems. I'm trying to figure out how I can determine which of the missing translation errors are actual problems and which can be ignored so I can handle this in my script. I'll show the verbose output from what I'm seeing - thanks for any help.apt-offline set:
Attached the apt-offline get operation output as a txt file.
apt-offline-get.txt
The text was updated successfully, but these errors were encountered: