You are not logged in.
Pages: 1
Update Manager & Desktop Profiler are not working because they say that there's a error in Apt database integrity.
But Synaptic & command-line apt/aptitute/apt-get works well. I don't know what can be causing this error.
Today I've got a notification that updates were avalaible, and when I tried to update via Update Manager it shows me that error. So I went to Synaptic and update was succesfull.
Last edited by BrJPedro (2018-04-20 18:13)
João Pedro -o- @12h01
Offline
One thing that can cause this behaviour is if you have installed any packages that are meant to be for another architecture, for instance when I installed my printer drivers it required some i386 packages on my amd64 system, these were installed and everything worked until such time as updates were required.
The good news is if this is the problem you have you could add the "foreign architecture" to apt and after an apt update everything should be working again. In my case I had to do :-
sudo dpkg --add-architecture i386
which after updating apt cleared the problem.
Of course there could be some other issue but this is one that I have had before.
Offline
I tried to add the i386 architeture, but it fails yet. This is the screen error:
Last edited by BrJPedro (2018-04-21 15:31)
João Pedro -o- @12h01
Offline
We will try to help you to resolve the issue. Please run a few commands in terminal and post output back:
$ sudo apt update
$ sudo apt dist-upgrade
$ sudo apt-get check
$ echo $?
Offline
$ sudo apt update
sudo: could not resolve machine q4os
Reached: 1 http://security.debian.org stretch / updates InRelease
Ign: 2 http://deb.debian.org/debian stretch InRelease
Ign: 3 http://dl.google.com/linux/chrome/deb stable InRelease
Err: 4 ftp://ftp.debian.org/debian jessie InRelease
Could not start connection to ftp.debian.org:21 (2001: 67c: 2564: a119 :: 148: 12). - connect (101: The network is out of range) [IP: 2001: 67c: 2564: a119 :: 148: 12 21]
Err: 5 ftp://ftp.debian.org/debian stretch InRelease
Could not start connection to ftp.debian.org:21 (2001: 67c: 2564: a119 :: 148: 12). - connect (101: The network is out of range) [IP: 2001: 67c: 2564: a119 :: 148: 12 21]
Attained: 6 http://ftp.debian.org/debian stretch-backports InRelease
Ign: 7 http://deb.debian.org/debian stretch / updates InRelease
Achieved: 8 http://deb.debian.org/debian stretch-updates InRelease
Reached: 9 http://dl.google.com/linux/chrome/deb stable Release
Achieved: 10 http://deb.debian.org/debian stretch Release
Err: 11 http://deb.debian.org/debian stretch / updates Release
404 Not Found [IP: 151.101.92.204 80]
Reached: 12 http://q4os.org/q4repo q4os-2-0-cn InRelease
Achieved: 13 http://q4os.org/qtderepo stretch InRelease
Reading package lists ... Ready
E: The repository 'http://deb.debian.org/debian stretch / updates Release' does not have a Release file.
N: Updating from such a repository can not be done securely, and is therefore disabled by default.
N: See apt-secure (8) manpage for repository creation and user configuration details.
$ sudo apt dist-upgrade
sudo: could not resolve machine q4os
Reading package lists ... Ready
Building dependency tree
Reading status information ... Ready
Calculating update ... Ready
The following packages have been installed automatically and are no longer required:
libappindicator1 libdbusmenu-gtk4 libindicator7
Use 'sudo apt autoremove' to remove them.
The following packages will be updated:
fonts-opensymbol google-chrome-stable
2 packages updated, 0 new packages installed, 0 to be removed and 0 not upgraded.
You need to download 52.5 MB of files.
After this operation, an additional 164 kB of disk space will be used.
Do you want to continue? [S / n] S
Get: 1 http://security.debian.org stretch / updates / main amd64 fonts-opensymbol all 2: 102.7 + LibO5.2.7-1 + deb9u4 [260 kB]
Get: 2 http://dl.google.com/linux/chrome/deb stable / main amd64 google-chrome-stable amd64 66.0.3359.117-1 [52.2 MB]
Downloaded 52.5 MB in 7min 21s (119 kB / s)
(Reading database ... 328714 files and directories currently installed.)
Preparing to unpack ... / google-chrome-stable_66.0.3359.117-1_amd64.deb ...
Unzipping google-chrome-stable (66.0.3359.117-1) about (65.0.3325.181-1) ...
Preparing to unpack ... / fonts-opensymbol_2% 3a102.7 + LibO5.2.7-1 + deb9u4_all.deb ...
Unzip fonts-opensymbol (2: 102.7 + LibO5.2.7-1 + deb9u4) over (2: 102.7 + LibO5.2.7-1 + deb9u3) ...
Processing 'triggers' for mime-support (3.60) ...
Processing 'triggers' for desktop-file-utils (0.23-1) ...
Processing 'triggers' for menu (2.1.47 + b1) ...
Processing 'triggers' for man-db (2.7.6.1-2) ...
Setting google-chrome-stable (66.0.3359.117-1) ...
Configuring fonts-opensymbol (2: 102.7 + LibO5.2.7-1 + deb9u4) ...
Processing 'triggers' for fontconfig (2.11.0-6.7 + b1) ...
Processing 'triggers' for menu (2.1.47 + b1) ...
$ sudo apt-get check
sudo: could not resolve machine q4os
Reading package lists ... Ready
Building dependency tree
Reading status information ... Ready
joaopedro@q4os:~$ echo $
$
joaopedro@q4os:~$ echo $?
0
Last edited by BrJPedro (2018-04-21 16:05)
João Pedro -o- @12h01
Offline
You are mixing repositories for a start (Jessie and Stretch) which will never be a good experience, and it also looks like you are using ftp protocol for two of the repos which I do not think is usual and could be the reason they are failing.
I would start by changing the lines in your sources that start "ftp://ftp.debian" to read "http://ftp.debian"
Next I would ask myself if I really need two different version repositories in there, and if not then simply comment out any "Jessie" ones. then perform an apt update and see if that fixes the issue.
Offline
$ sudo apt update
sudo: could not resolve machine q4os
Reached: 1 http://q4os.org/q4repo q4os-2-0-cn InRelease
Reached: 2 http://q4os.org/qtderepo stretch InRelease
Ign: 3 http://dl.google.com/linux/chrome/deb stable InRelease
Ign: 4 http://deb.debian.org/debian stretch InRelease
Ign: 5 http://deb.debian.org/debian stretch / updates InRelease
Attained: 6 http://ftp.debian.org/debian stretch-backports InRelease
Achieved: 7 http://deb.debian.org/debian stretch-updates InRelease
Achieved: 8 http://dl.google.com/linux/chrome/deb stable Release
Achieved: 9 http://deb.debian.org/debian stretch Release
Err: 10 http://deb.debian.org/debian stretch / updates Release
404 Not Found [IP: 151.101.92.204 80]
Reading package lists ... Ready
E: The repository 'http://deb.debian.org/debian stretch / updates Release' does not have a Release file.
N: Updating from such a repository can not be done securely, and is therefore disabled by default.
N: See apt-secure (8) manpage for repository creation and user configuration details.
Last edited by BrJPedro (2018-04-21 16:44)
João Pedro -o- @12h01
Offline
Please show the command you are using in your posts so we might understand why you are getting the
sudo: could not resolve machine q4os
messages every time.
Also I think it possible you have more than one issue but I'm sure that will become more apparent as we go along.
could you post the output of apt policy
Offline
This sudo message always appeared to me.
See:
joaopedro@q4os:~$ sudo echo anything
sudo: não foi possível resolver máquina q4os
anything
joaopedro@q4os:~$
joaopedro@q4os:~$ apt policy
Arquivos de pacote:
100 /var/lib/dpkg/status
release a=now
500 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages
release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main,b=amd64
origin dl.google.com
100 http://ftp.debian.org/debian stretch-backports/non-free i386 Packages
release o=Debian Backports,a=stretch-backports,n=stretch-backports,l=Debian Backports,c=non-free,b=i386
origin ftp.debian.org
100 http://ftp.debian.org/debian stretch-backports/non-free amd64 Packages
release o=Debian Backports,a=stretch-backports,n=stretch-backports,l=Debian Backports,c=non-free,b=amd64
origin ftp.debian.org
100 http://ftp.debian.org/debian stretch-backports/contrib i386 Packages
release o=Debian Backports,a=stretch-backports,n=stretch-backports,l=Debian Backports,c=contrib,b=i386
origin ftp.debian.org
100 http://ftp.debian.org/debian stretch-backports/contrib amd64 Packages
release o=Debian Backports,a=stretch-backports,n=stretch-backports,l=Debian Backports,c=contrib,b=amd64
origin ftp.debian.org
100 http://ftp.debian.org/debian stretch-backports/main i386 Packages
release o=Debian Backports,a=stretch-backports,n=stretch-backports,l=Debian Backports,c=main,b=i386
origin ftp.debian.org
100 http://ftp.debian.org/debian stretch-backports/main amd64 Packages
release o=Debian Backports,a=stretch-backports,n=stretch-backports,l=Debian Backports,c=main,b=amd64
origin ftp.debian.org
500 http://deb.debian.org/debian stretch-updates/main i386 Packages
release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=i386
origin deb.debian.org
500 http://deb.debian.org/debian stretch-updates/main amd64 Packages
release o=Debian,a=stable-updates,n=stretch-updates,l=Debian,c=main,b=amd64
origin deb.debian.org
500 http://deb.debian.org/debian stretch/non-free i386 Packages
release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=non-free,b=i386
origin deb.debian.org
500 http://deb.debian.org/debian stretch/non-free amd64 Packages
release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=non-free,b=amd64
origin deb.debian.org
500 http://deb.debian.org/debian stretch/contrib i386 Packages
release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=contrib,b=i386
origin deb.debian.org
500 http://deb.debian.org/debian stretch/contrib amd64 Packages
release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=contrib,b=amd64
origin deb.debian.org
500 http://deb.debian.org/debian stretch/main i386 Packages
release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=i386
origin deb.debian.org
500 http://deb.debian.org/debian stretch/main amd64 Packages
release v=9.4,o=Debian,a=stable,n=stretch,l=Debian,c=main,b=amd64
origin deb.debian.org
500 http://q4os.org/qtderepo stretch/main i386 Packages
release v=9.0,o=q4os.org,a=qtde-stretch-st,n=stretch,l=Q4OS TDE repository,c=main,b=i386
origin q4os.org
500 http://q4os.org/qtderepo stretch/main amd64 Packages
release v=9.0,o=q4os.org,a=qtde-stretch-st,n=stretch,l=Q4OS TDE repository,c=main,b=amd64
origin q4os.org
501 http://q4os.org/q4repo q4os-2-0-cn/main i386 Packages
release v=2.0,o=q4os.org,a=q4os-2-0-st,n=q4os-2-0-cn,l=q4os-2-0 repository,c=main,b=i386
origin q4os.org
501 http://q4os.org/q4repo q4os-2-0-cn/main amd64 Packages
release v=2.0,o=q4os.org,a=q4os-2-0-st,n=q4os-2-0-cn,l=q4os-2-0 repository,c=main,b=amd64
origin q4os.org
Pacotes alfinetados ("pinned"):
Last edited by BrJPedro (2018-04-21 17:06)
João Pedro -o- @12h01
Offline
It appears, you have corrupted your sources.list file. Please post contents of the debian lists file:
$ cat /etc/apt/sources.list.d/20_debian.list
The correct '/etc/apt/sources.list.d/20_debian.list' file should look like this:
# Q4OS essential repository
# **** !!! NEVER touch this CRITICAL system file **** !!!
deb http://ftp.debian.org/debian/ stretch main contrib non-free
#deb-src http://ftp.debian.org/debian/ stretch main contrib non-free
deb http://security.debian.org/debian-security/ stretch/updates main contrib non-free
#deb-src http://security.debian.org/debian-security/ stretch/updates main contrib non-free
# stretch-updates, previously known as 'volatile'
deb http://ftp.debian.org/debian/ stretch-updates main contrib non-free
#deb-src http://ftp.debian.org/debian/ stretch-updates main contrib non-free
##deb http://ftp.debian.org/debian/ stretch-proposed-updates main contrib non-free
##deb-src http://ftp.debian.org/debian/ stretch-proposed-updates main contrib non-free
# mirror chooser service - experimental
##deb http://deb.debian.org/debian/ stretch main contrib non-free
##deb-src http://deb.debian.org/debian/ stretch main contrib non-free
Offline
It appears, you have a corrupted sources.list file. Please post contents of your debian lists file:
$ cat /etc/apt/sources.list.d/20_debian.list
Here it is:
# Q4OS essential repository
# **** !!! NEVER touch this CRITICAL system file **** !!!
deb http://deb.debian.org/debian/ stretch main contrib non-free
deb-src http://deb.debian.org/debian/ stretch/updates main contrib non-free
# stretch-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ stretch-updates main contrib non-free
##deb http://ftp.debian.org/debian/ stretch-proposed-updates main contrib non-free
##deb-src http://ftp.debian.org/debian/ stretch-proposed-updates main contrib non-free
# mirror chooser service - experimental
##deb http://deb.debian.org/debian/ stretch main contrib non-free
##deb-src http://deb.debian.org/debian/ stretch main contrib non-free
I edited the file like you said, and now I will run $ sudo apt update to see if that fixes the problem.
Last edited by BrJPedro (2018-04-21 17:17)
João Pedro -o- @12h01
Offline
$ sudo apt update now works like a charm.
But Update Manager not. :'/
joaopedro@q4os:~$ sudo apt update
sudo: não foi possível resolver máquina q4os
[sudo] senha para joaopedro:
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Atingido:2 http://dl.google.com/linux/chrome/deb stable Release
Ign:3 http://ftp.debian.org/debian stretch InRelease
Atingido:4 http://security.debian.org/debian-security stretch/updates InRelease
Atingido:5 http://ftp.debian.org/debian stretch-updates InRelease
Atingido:7 http://ftp.debian.org/debian stretch-backports InRelease
Atingido:8 http://ftp.debian.org/debian stretch Release
Atingido:9 http://q4os.org/q4repo q4os-2-0-cn InRelease
Atingido:11 http://q4os.org/qtderepo stretch InRelease
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
All packages are up to date.
joaopedro@q4os:~$
Update Manager:
João Pedro -o- @12h01
Offline
Could you install inxi and post the output of
inxi -rS
and also post the output of
cat /etc/hosts
EDIT: and have you rebooted your machine at all? if not could you reboot and check updater again?
Last edited by Dai_trying (2018-04-21 18:54)
Offline
$ inxi -rS
System: Host: q4os Kernel: 4.9.0-6-amd64 x86_64 (64 bit)
Desktop: KDE Plasma 3 Distro: Debian GNU/Linux 9 (stretch)
Repos: Active apt sources in file: /etc/apt/sources.list.d/10_q4os.list
deb http://q4os.org/q4repo q4os-2-0-cn main
deb-src http://q4os.org/q4repo q4os-2-0-cn main
Active apt sources in file: /etc/apt/sources.list.d/12_qtde.list
deb http://q4os.org/qtderepo stretch main
deb-src http://q4os.org/qtderepo stretch main
Active apt sources in file: /etc/apt/sources.list.d/20_debian.list
deb http://ftp.debian.org/debian/ stretch main contrib non-free
deb http://security.debian.org/debian-security/ stretch/updates main contrib non-free
deb http://ftp.debian.org/debian/ stretch-updates main contrib non-free
Active apt sources in file: /etc/apt/sources.list.d/30_debian_backports.list
deb http://ftp.debian.org/debian/ stretch-backports main contrib non-free
deb-src http://ftp.debian.org/debian/ stretch-backports main contrib non-free
Active apt sources in file: /etc/apt/sources.list.d/google-chrome.list
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
joaopedro@q4os:~$
Hosts
joaopedro@q4os:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 q4os-desktop
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
João Pedro -o- @12h01
Offline
I would change the second line in your /etc/hosts file so it reads
127.0.0.1 localhost
127.0.1.1 q4os
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
which should solve your error output for your machine name, it might also solve the updater issue too (fingers crossed).
Last edited by Dai_trying (2018-04-21 19:37)
Offline
Everything is working fine now! <3
Thank you Dai_trying and q4osteam for the help!
João Pedro -o- @12h01
Offline
You are welcome
EDIT:
One thing you might want to do is remove the i386 repository as it is likely you do not actually need it (unless you know it is needed) which can be done using the command
sudo dpkg --remove-architecture i386
Last edited by Dai_trying (2018-04-21 20:08)
Offline
I know his is two years old but the fix that I used isn't here so perhaps it might be useful to others.
The problem occurre after I changed the hostname from q4os to carrot. Synaptic continued to work but the Software Centre kept saying that the apt db was corrupt and that it could not resolve the hostname (carrot).
My fix was to edit /etc/hostnames and duplicate the line that said
127.0.1.1 q4os-desktop
and change it to say
127.0.1.1 carrot
Then installing from the Software Centre worked.
Offline
@kwhitefoot
Which way did you change the hostname ?
Offline
Pages: 1