DietPi-Software | Apt simulation failing #669

Closed
Fourdee opened this Issue Dec 27, 2016 · 10 comments

Projects

None yet

4 participants

@Fourdee
Owner
Fourdee commented Dec 27, 2016 edited

http://dietpi.com/phpbb/viewtopic.php?f=9&t=887&p=4590#p4583

Update & upgrade APT
Please wait...

Ign http://ftp.cn.debian.org jessie InRelease
Get:1 http://ftp.cn.debian.org jessie-updates InRelease [145 kB]
Hit http://security.debian.org jessie/updates InRelease
E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?
[Info] Running apt simulation to check for errors, please wait...
[Failed] Apt simulation | An issue has occured

[Failed] The apt cache may be corrupt, apt mirror offline, or you have held broken pacakages. DietPi-Software will now exit.

[Info] Please try:
[Info] - Fixing apt package errors with 'apt-get install -f'
[Info] - Change apt mirror: 'dietpi-config' > 'Networking: NAS/MISC' > 'Apt Mirror'
[Info] - Clear and refresh apt 'apt-get update'
[Info] - If problems persist, please create a Git ticket so DietPi can investigate the issue:
- https://github.com/Fourdee/DietPi/issues
@Fourdee Fourdee added the bug label Dec 27, 2016
@Fourdee Fourdee added this to the v141 milestone Dec 27, 2016
@Fourdee
Owner
Fourdee commented Dec 27, 2016 edited

Looks like Debian, has forced https redirect on their security repo overnight. Making apt-transport-https a install requirement.

Solution:

  • ARMv7 =
wget http://security.debian.org/debian-security/pool/updates/main/c/curl/libcurl3-gnutls_7.38.0-4+deb8u5_armhf.deb
wget http://security.debian.org/debian-security/pool/updates/main/a/apt/apt-transport-https_1.0.9.8.4_armhf.deb
dpkg -i *.deb
  • ARM64 (C2/Pine) =
wget http://security.debian.org/debian-security/pool/updates/main/a/apt/apt-transport-https_1.0.9.8.4_arm64.deb
wget http://security.debian.org/debian-security/pool/updates/main/c/curl/libcurl3-gnutls_7.38.0-4+deb8u5_arm64.deb
dpkg -i *.deb
@Fourdee
Owner
Fourdee commented Dec 27, 2016

apt-transport-https will now be installed by default on all DietPi devices.

@thanhvo31

Hi

Here is my error

dpkg: dependency problems prevent configuration of apt-transport-https:
apt-transport-https depends on libapt-pkg4.12 (>= 1.0.9.8.4); however:
Version of libapt-pkg4.12:armhf on system is 1.0.9.8.3.

@k-plan
Collaborator
k-plan commented Dec 28, 2016 edited

Hi,

you can test, if this is working for you:

root@Odroid-C1:~# apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  apt-transport-https
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/135 kB of archives.
After this operation, 170 kB of additional disk space will be used.
Selecting previously unselected package apt-transport-https.
(Reading database ... 19297 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_1.0.9.8.4_armhf.deb ...
Unpacking apt-transport-https (1.0.9.8.4) ...
Setting up apt-transport-https (1.0.9.8.4) ...

If you will ask, that packet can't be verify, answer to install it anyway.

@Fourdee
Owner
Fourdee commented Dec 28, 2016

@thanhvo31

If @k-plan post above does not resolve it.

Try installing the request version of this package (libapt-pkg4.12_1.0.9.8.4):

wget http://security.debian.org/debian-security/pool/updates/main/a/apt/libapt-pkg4.12_1.0.9.8.4_armhf.deb
dpkg -i libapt-pkg4.12_1.0.9.8.4_armhf.deb
@thanhvo31

@Fourdee , @k-plan
Confirm @k-plan post above does not resolve it.
installing the request version of this package (libapt-pkg4.12_1.0.9.8.4): worked!

@Fourdee
Owner
Fourdee commented Dec 30, 2016 edited

Dammit,

I'll need to update all our images affected by this, pre-installing apt-transport-https. Else, all users will experience this issue on each fresh install. Patch is too risky.

What a stupid idea to put apt-transport-https in a repo, that forces HTTPS redirect and requires apt-transport-https to be installed, before you can install it.....

  • RPi (is not effected)
  • Everything else

and + or

  • 🈯️ Emergency patch system that runs prior to all patches in patch_file
@Fourdee Fourdee added a commit that referenced this issue Dec 30, 2016
@Fourdee v141
+ EMR patch test: #669
+ NanoPi NEO Air 4.9: #640
3e78ed2
@Fourdee Fourdee added a commit that referenced this issue Dec 30, 2016
@Fourdee v141
+ More testing: #669
ba9c85f
@aliosa27
Contributor

I'll regenerate a few of those. all i need to add is the apt-transport-https package correct?

@Fourdee
Owner
Fourdee commented Dec 31, 2016 edited

@aliosa27

I'll regenerate a few of those. all i need to add is the apt-transport-https package correct?

Yep. Please, would be a great help 👍

I'll try and get v141 released early today, should prevent new installs on any image version from experiencing this issue.
Added patch to grab apt-transport-https package from apt, if that fails, it will manually pull them in via wget.

@Fourdee Fourdee referenced this issue Dec 31, 2016
Merged

v141 #682

@Fourdee
Owner
Fourdee commented Dec 31, 2016

I'll mark this as resolved, patch system will fix fresh and existing installations, however, i'd still like to update our images and add apt-transport-https by default, just incase.

@aliosa27
I need to re-do the RPi+XU4 image, if you can do any others i'd be grateful. New ticket: #676

@Fourdee Fourdee closed this Dec 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment