2

I am new to Raspbian. I have a Raspberry Pi3 Model B.

I am trying to interface RTC DS1307 with it.

The steps outlined in the documentation are:

  1. sudo apt-get update
  2. sudo apt-get upgrade

When I perform the step 1., I get the following errors:

Get:1 http://repo.mysql.com stretch InRelease
Get:2 http://mirrordirector.raspbian.org jessie InRelease
99% [1 InRelease gpgv 197 B] [Connecting to archive.raspberrypi.org]Splitting up /var/lib/apt/lists/partial/repo.mysql.com_apt_debian_dists_stretch_InRelease into data Err http://repo.mysql.com stretch InRelease

99% [2 InRelease gpgv 197 B] [Connecting to archive.raspberrypi.org]Splitting up /var/lib/apt/lists/partial/mirrordirector.raspbian.org_raspbian_dists_jessie_InRelease Err http://mirrordirector.raspbian.org jessie InRelease

Get:3 http://archive.raspberrypi.org jessie InRelease
Err http://archive.raspberrypi.org jessie InReleasept/lists/partial/archive.raspberrypi.org_debian_dists_jessie_InRelease into data and signature failed

Fetched 591 B in 5s (112 B/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mysql.com stretch InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http//mirrordirector.raspbian.org jessie InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.raspberrypi.org jessie InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)

W: Failed to fetch http://mirrordirector.raspbian.org/rasp ... /InRelease

W: Failed to fetch http://repo.mysql.com/apt/debian/dists/ ... /InRelease

W: Failed to fetch http://archive.raspberrypi.org/debian/d ... /InRelease

W: Some index files failed to download. They have been ignored, or old ones used instead.

When I perform step 2., I get the following errors:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up python3 (3.4.2-2) ...
running python rtupdate hooks for python3.4...
dpkg-query: package 'gdebi-core' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
Traceback (most recent call last):
File "/usr/bin/py3clean", line 210, in <module>
main()
File "/usr/bin/py3clean", line 196, in main
pfiles = set(dpf.from_package(options.package))
File "/usr/share/python3/debpython/files.py", line 53, in from_package
raise Exception("cannot get content of %s" % package_name)
Exception: cannot get content of gdebi-core
error running python rtupdate hook gdebi-core
dpkg-query: package 'python3-uno' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
Traceback (most recent call last):
File "/usr/bin/py3clean", line 210, in <module>
main()
File "/usr/bin/py3clean", line 196, in main
pfiles = set(dpf.from_package(options.package))
File "/usr/share/python3/debpython/files.py", line 53, in from_package
raise Exception("cannot get content of %s" % package_name)
Exception: cannot get content of python3-uno
error running python rtupdate hook python3-uno
dpkg: error processing package python3 (--configure):
subprocess installed post-installation script returned error exit status 4
dpkg: dependency problems prevent configuration of python3-dev:
python3-dev depends on python3 (= 3.4.2-2); however:
Package python3 is not configured yet.

dpkg: error processing package python3-dev (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of dh-python:
dh-python depends on python3:any (>= 3.3.2-2~); however:
Package python3 is not configured yet.

dpkg: error processing package dh-python (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3
python3-dev
dh-python
E: Sub-process /usr/bin/dpkg returned an error code (1)

May I know where I am going wrong? Or what needs to be done?

0

Seems there is something broken with your apt list files. You can try to reinitialize them. Edit this two files:

/etc/apt/sources.list
/etc/apt/sources.list.d/raspi.list

Note what lines does not have a # at first character. Set it and save the files. The do:

rpi ~$ sudo apt update

Because there are no entries in sources.list and raspi.list (they are all commented) all list files for the repositories will be removed. Now edit the two files again and remove the # you have set, but only that. Now do:

rpi ~$ sudo apt update
rpi ~$ sudo apt full-upgrade

Don't know if it helps but it is worth a try.

  • 1
    Ha ha - you and I keep bumping into each other trying to answer the same questions :) As usual, you are on the right track... OP clearly has a conflict with his sources list. Note that stretch and jessie are both mentioned in the first 3 lines of his terminal record. – Seamus Jul 30 '18 at 18:10
  • @Seamus Yes - with your short time I like to disburden you a bit ;-)) – Ingo Jul 30 '18 at 18:17
0

@Ingo @Seamus

Hello,

Following is the result of commenting the contents of /etc/apt/sources.list and /etc/apt/sources.list.d/raspi.list :-

pi@raspberrypi:~ $ sudo apt update Get:1 http://repo.mysql.com stretch InRelease 99% [1 InRelease gpgv 197 B]Splitting up /var/lib/apt/lists/partial/repo.mysql.com_apt_debian_diErr http://repo.mysql.com stretch InReleasere failed

Fetched 197 B in 2s (74 B/s) Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mysql.com stretch InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)

W: Failed to fetch http://repo.mysql.com/apt/debian/dists/stretch/InRelease

W: Some index files failed to download. They have been ignored, or old ones used instead.

After uncommenting the contents of sources and issuing 'sudo apt update':-

pi@raspberrypi:~ $ sudo apt update Get:1 http://repo.mysql.com stretch InRelease Get:2 http://archive.raspbian.org jessie InRelease 99% [1 InRelease gpgv 197 B] [Connecting to mirrordirector.raspbian.org] [Waiting for headers]Splitting up /var/lib/apt/lists/partial/repo.mysql.com_apt_debian_dists_stretch_InRelease into datErr http://repo.mysql.com stretch InRelease

99% [2 InRelease gpgv 197 B] [Connecting to mirrordirector.raspbian.org] [Waiting for headers]Splitting up /var/lib/apt/lists/partial/archive.raspbian.org_raspbian_dists_jessie_InRelease into Err http://archive.raspbian.org jessie InRelease

Get:3 http://archive.raspberrypi.org jessie InRelease 99% [3 InRelease gpgv 197 B] [Connecting to mirrordirector.raspbian.org (93.93.128.193)]Splitting up /var/lib/apt/lists/partial/archive.raspberrypi.org_debian_dists_jessie_InRelease into data Err http://archive.raspberrypi.org jessie InRelease

Get:4 http://mirrordirector.raspbian.org jessie InRelease 99% [4 InRelease gpgv 197 B]Splitting up /var/lib/apt/lists/partial/mirrordirector.raspbian.org_Err http://mirrordirector.raspbian.org jessie InRelease failed

Fetched 788 B in 5s (142 B/s) Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mysql.com stretch InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.raspbian.org jessie InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.raspberrypi.org jessie InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)

W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://mirrordirector.raspbian.org jessie InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)

W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/InRelease

W: Failed to fetch http://archive.raspbian.org/raspbian/dists/jessie/InRelease

W: Failed to fetch http://repo.mysql.com/apt/debian/dists/stretch/InRelease

W: Failed to fetch http://archive.raspberrypi.org/debian/dists/jessie/InRelease

W: Some index files failed to download. They have been ignored, or old ones used instead.

And after issuing 'sudo apt full-upgrade':-

pi@raspberrypi:~ $ sudo apt full-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 14 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y Setting up gconf2 (3.2.6-3) ... Traceback (most recent call last):
File "/usr/bin/update-gconf-defaults", line 164, in read_entries(realname) File "/usr/bin/update-gconf-defaults", line 123, in read_entries for line in file(filename): NameError: name 'file' is not defined dpkg: error processing package gconf2 (--configure): subprocess installed post-installation script returned error exit status 1 Setting up python3 (3.4.2-2) ... running python rtupdate hooks for python3.4... dpkg-query: package 'python3-uno' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. Traceback (most recent call last): File "/usr/bin/py3clean", line 210, in main() File "/usr/bin/py3clean", line 196, in main pfiles = set(dpf.from_package(options.package)) File "/usr/share/python3/debpython/files.py", line 53, in from_package raise Exception("cannot get content of %s" % package_name) Exception: cannot get content of python3-uno error running python rtupdate hook python3-uno dpkg: error processing package python3 (--configure): subprocess installed post-installation script returned error exit status 4 dpkg: dependency problems prevent configuration of python3-apt: python3-apt depends on python3 (<< 3.5); however:
Package python3 is not configured yet. python3-apt depends on python3 (>= 3.4~); however: Package python3 is not configured yet.

dpkg: error processing package python3-apt (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-pkg-resources: python3-pkg-resources depends on python3:any (>= 3.3); however: Package python3 is not configured yet. python3-pkg-resources depends on python3:any (<< 3.5); however: Package python3 is not configured yet.

dpkg: error processing package python3-pkg-resources (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-chardet: python3-chardet depends on python3; however: Package python3 is not configured yet. python3-chardet depends on python3:any (>= 3.3.2-2~); however:
Package python3 is not configured yet. python3-chardet depends on python3-pkg-resources; however: Package python3-pkg-resources is not configured yet.

dpkg: error processing package python3-chardet (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-six: python3-six depends on python3:any (>= 3.3.2-2~); however: Package python3 is not configured yet.

dpkg: error processing package python3-six (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-debian: python3-debian depends on python3-chardet; however: Package python3-chardet is not configured yet. python3-debian depends on python3-six (>> 1.4~); however:
Package python3-six is not configured yet. python3-debian depends on python3:any (>= 3.3.2-2~); however: Package python3 is not configured yet.

dpkg: error processing package python3-debian (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of gdebi-core: gdebi-core depends on python3:any (>= 3.3.2-2~); however: Package python3 is not configured yet. gdebi-core depends on python3-apt; however: Package python3-apt is not configured yet. gdebi-core depends on python3-debian; however: Package python3-debian is not configured yet.

dpkg: error processing package gdebi-core (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python3-gi: python3-gi depends on python3 (>= 3.4~); however: Package python3 is not configured yet. python3-gi depends on python3 (<< 3.5); however: Package python3 is not configured yet.

dpkg: error processing package python3-gi (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of libgksu2-0: libgksu2-0 depends on gconf2 (>= 2.28.1-2); however: Package gconf2 is not configured yet.

dpkg: error processing package libgksu2-0 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of gksu: gksu depends on libgksu2-0 (>= 2.0.8); however: Package libgksu2-0 is not configured yet.

dpkg: error processing package gksu (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of gdebi: gdebi depends on python3:any (>= 3.3.2-2~); however: Package python3 is not configured yet. gdebi depends on gdebi-core (= 0.9.5.5+nmu1); however: Package gdebi-core is not configured yet. gdebi depends on python3-gi; however: Package python3-gi is not configured yet. gdebi depends on gksu; however:
Package gksu is not configured yet.

dpkg: error processing package gdebi (--configure): dependency problems - leaving unconfigured Setting up lsb-release (4.1+Debian13+rpi1+nmu1) ... Traceback (most recent call last): File "/usr/bin/pycompile", line 35, in from debpython.version import SUPPORTED, debsorted, vrepr, \ File "/usr/share/python/debpython/version.py", line 24, in from ConfigParser import SafeConfigParser ImportError: No module named 'ConfigParser' dpkg: error processing package lsb-release (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of python3-dev: python3-dev depends on python3 (= 3.4.2-2); however:
Package python3 is not configured yet.

dpkg: error processing package python3-dev (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: gconf2 python3 python3-apt python3-pkg-resources python3-chardet python3-six python3-debian gdebi-core python3-gi libgksu2-0 gksu gdebi lsb-release python3-dev

  • It seemed clear to me from your OP that there is a 'version conflict' somewhere in your system configuration. I say this because the words stretch and jessie both appear in the error listings in your OP. And just to ensure we're clear on that point, stretch is the name of the current version of the Raspbian OS, and jessie is the name of the previous version. Let me ask you to do this: EDIT this "answer" to add the contents of the files /etc/apt/sources.list and /etc/apt/sources.list.d/raspi.list – Seamus Aug 1 '18 at 1:13
  • To add to my previous comment: Once we get the 'version conflict' on your system resolved, the installation of your RTC packages will be possible. – Seamus Aug 1 '18 at 1:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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