LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-13-2018, 11:26 PM   #1
steelheat
Member
 
Registered: Jun 2006
Location: Western US of A
Distribution: Kubuntu20.04,Debian 9,10,11,#419541 wRegistered user ith the Linux Counter
Posts: 86

Rep: Reputation: 7
I have an "apt-get update" problem!


I've entered apt-get update like a million times, and never had a real problem until today.
This is the results when I use the "apt-get update" command:

$ sudo apt-get update
[sudo] password for jar:
Hit:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://mirrors.edge.kernel.org/debian stretch InRelease
Hit:3 http://mirrors.edge.kernel.org/debian stretch-updates InRelease
Hit:5 http://mirrors.edge.kernel.org/debian stretch Release
Hit:6 https://updates.signal.org/desktop/apt xenial InRelease
Ign:4 https://dl.bintray.com/etcher/debian stable InRelease
Get:8 https://dl.bintray.com/etcher/debian stable Release [3,674 B]
Hit:8 https://dl.bintray.com/etcher/debian stable Release
Get:9 https://dl.bintray.com/etcher/debian stable Release.gpg [821 B]
Ign:9 https://dl.bintray.com/etcher/debian stable Release.gpg
Fetched 821 B in 0s (831 B/s)
Reading package lists... Done
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/signal-xenial.list:1 and /etc/apt/sources.list.d/signal-xenial.list:2
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/signal-xenial.list:1 and /etc/apt/sources.list.d/signal-xenial.list:2
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/signal-xenial.list:1 and /etc/apt/sources.list.d/signal-xenial.list:2
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/signal-xenial.list:1 and /etc/apt/sources.list.d/signal-xenial.list:2
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/signal-xenial.list:1 and /etc/apt/sources.list.d/signal-xenial.list:2

I am suspicious that I entered the newer command "apt update" about a week ago before installing a program, but I don't know enough about the new "apt" commands to know what happens when it's used. So, someone please tell me what to do to correct this problem please? Thanks in advance for checking me out!sh
 
Old 12-14-2018, 01:58 AM   #2
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
You'll notice all errors point to xenial. When you right click on the web address for "Hit:6 https://updates.signal.org/desktop/apt xenial InRelease" and open on another page you will get "Page not found". Either the address is incorrect or doesn't exist, or you need to add a specific/proper GPG key for the site.
BTW, xenial is a Ubuntu name, not Debian stable, mixing packages from different distributions will break Debian, you should have a Debian stable updates mirror in your sources list.

Last edited by Brains; 12-14-2018 at 02:13 AM.
 
2 members found this post helpful.
Old 12-14-2018, 06:04 AM   #3
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Please paste the output from the following command so that we can have a look at your sources:

Code:
for i in /etc/apt/sources.list{,.d/*}; do echo file: $i; cat $i; echo ====; done
As Brains says, you should *not* be mixing Debian and Ubuntu repositories. Also, your use of apt was not the problem.
 
2 members found this post helpful.
Old 12-14-2018, 10:16 PM   #4
steelheat
Member
 
Registered: Jun 2006
Location: Western US of A
Distribution: Kubuntu20.04,Debian 9,10,11,#419541 wRegistered user ith the Linux Counter
Posts: 86

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by hydrurga View Post
Please paste the output from the following command so that we can have a look at your sources:

Code:
for i in /etc/apt/sources.list{,.d/*}; do echo file: $i; cat $i; echo ====; done
As Brains says, you should *not* be mixing Debian and Ubuntu repositories. Also, your use of apt was not the problem.
$ for i in /etc/apt/sources.list{,.d/*}; do echo file: $i; cat $i; echo ====; done
file: /etc/apt/sources.list
#

# deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 NETINST 20180714-10:25]/ stretch main

# deb cdrom:[Debian GNU/Linux 9.5.0 _Stretch_ - Official amd64 NETINST 20180714-10:25]/ stretch main

deb http://mirrors.kernel.org/debian/ stretch main
deb-src http://mirrors.kernel.org/debian/ stretch main

deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main

# stretch-updates, previously known as 'volatile'
deb http://mirrors.kernel.org/debian/ stretch-updates main
deb-src http://mirrors.kernel.org/debian/ stretch-updates main
====
file: /etc/apt/sources.list.d/bk-stuff
cat: /etc/apt/sources.list.d/bk-stuff: Is a directory
====
file: /etc/apt/sources.list.d/etcher.list
deb https://deb.etcher.io stable etcher
====
file: /etc/apt/sources.list.d/etcher.list.save
deb https://deb.etcher.io stable etcher
====
file: /etc/apt/sources.list.d/giuspen-ubuntu-ppa-disco.list
====
file: /etc/apt/sources.list.d/giuspen-ubuntu-ppa-disco.list.save
====
file: /etc/apt/sources.list.d/signal-xenial.list
deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main
deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main
====
file: /etc/apt/sources.list.d/signal-xenial.list.save
deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main
deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main
====

Thanks hydrurga and Brains for checking me out!
Would it be safe to say I have to delete these file:

file: /etc/apt/sources.list.d/giuspen-ubuntu-ppa-disco.list
file: /etc/apt/sources.list.d/giuspen-ubuntu-ppa-disco.list.save
file: /etc/apt/sources.list.d/etcher.list
file: /etc/apt/sources.list.d/etcher.list.save
file: /etc/apt/sources.list.d/giuspen-ubuntu-ppa-disco.list
file: /etc/apt/sources.list.d/giuspen-ubuntu-ppa-disco.list.save
file: /etc/apt/sources.list.d/signal-xenial.list
file: /etc/apt/sources.list.d/signal-xenial.list.save

Also, if I uninstall Kgpg will it remove all the "Release.gpg's"?
When I installed Kgpg just as it completed the install I changed my mind about using it, so I never configured it or set it up completely?
I was waiting on an answer on my post before I tried to change anything.

I don't know when I would have mixed in the Ubuntu repositories, it's not something that I would knowingly do! It will be really nice if you can help me out of my mess! Thks sh!

Last edited by steelheat; 12-14-2018 at 10:45 PM.
 
Old 12-14-2018, 10:51 PM   #5
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
Would it be safe to say I have to delete these file:
My /etc/apt/sources.list.d folder is empty. I would delete those for sure as they aren't applicable.
Quote:
Also, if I uninstall Kgpg will it remove all the "Release.gpg's"?
I don't have kgpg installed and have no issues getting updates or installing packages from Debian mirrors.
Make sure to run command: apt-get update after deleting the files.

Last edited by Brains; 12-14-2018 at 10:57 PM.
 
Old 12-15-2018, 12:39 AM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
There is no harm as such in having additional repos in /etc/apt/sources.list.d. However, it is always best when you have problems like this to simplify things. Therefore, now that we know what you have in there, you should delete all the files in that directory (you could have moved them elsewhere as backup but they're easily reproducible in your case). We can always have a look at each repo and figure out what you actually need for the relevant software after you've got apt working again - for example, I use a different repo for Etcher. If the bk-stuff directory is empty then delete it too.

Purely for info, a sample sources.list file (which appears fine in your case): https://wiki.debian.org/SourcesList#...e_sources.list

Note that it's better for you to include any output or code within CODE tags (see https://www.linuxquestions.org/quest...og.php?b=36313).
 
Old 12-15-2018, 08:52 PM   #7
steelheat
Member
 
Registered: Jun 2006
Location: Western US of A
Distribution: Kubuntu20.04,Debian 9,10,11,#419541 wRegistered user ith the Linux Counter
Posts: 86

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by hydrurga View Post
There is no harm as such in having additional repos in /etc/apt/sources.list.d. However, it is always best when you have problems like this to simplify things. Therefore, now that we know what you have in there, you should delete all the files in that directory (you could have moved them elsewhere as backup but they're easily reproducible in your case). We can always have a look at each repo and figure out what you actually need for the relevant software after you've got apt working again - for example, I use a different repo for Etcher. If the bk-stuff directory is empty then delete it too.

Purely for info, a sample sources.list file (which appears fine in your case): https://wiki.debian.org/SourcesList#...e_sources.list

Note that it's better for you to include any output or code within CODE tags (see https://www.linuxquestions.org/quest...og.php?b=36313).

hydrurga, thanks for taking the time to help me out, see my last post, I think I am now out of the woods so to speak. If you all will check me out one more time!
I get what your are saying about the CODE tags, I'm not quite sure I understand how to use it. But, will work on it for next time. I can see where it is definitely needed!
 
Old 12-15-2018, 08:53 PM   #8
steelheat
Member
 
Registered: Jun 2006
Location: Western US of A
Distribution: Kubuntu20.04,Debian 9,10,11,#419541 wRegistered user ith the Linux Counter
Posts: 86

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by Brains View Post
My /etc/apt/sources.list.d folder is empty. I would delete those for sure as they aren't applicable.

I don't have kgpg installed and have no issues getting updates or installing packages from Debian mirrors.
Make sure to run command: apt-get update after deleting the files.
Brains, thank you so much for helping me out! See my last post, and check me out!
 
Old 12-15-2018, 08:57 PM   #9
steelheat
Member
 
Registered: Jun 2006
Location: Western US of A
Distribution: Kubuntu20.04,Debian 9,10,11,#419541 wRegistered user ith the Linux Counter
Posts: 86

Original Poster
Rep: Reputation: 7
hydrurga, Brains, okay, checking over everything you both suggested. I went in and renamed the file /etc/apt/sources.list.d to xxxsources.list.d

Then I ran apt-get update, and this is what the results is::

$ sudo apt-get update
Ign:1 http://mirrors.edge.kernel.org/debian stretch InRelease
Hit:2 http://mirrors.edge.kernel.org/debian stretch-updates InRelease
Hit:4 http://security.debian.org/debian-security stretch/updates InRelease
Hit:3 http://mirrors.edge.kernel.org/debian stretch Release
Reading package lists... Done

Please tell me that's what it should be looking like!
I try to run apt-get update before every install/remove, and I never give it a second though unless it tell me there is some error.
So.... do you think it's okay to do an install now or not, Thanks again?sh
 
Old 12-15-2018, 09:51 PM   #10
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Absolutely. Looks good, if there were any updates available they would have been listed after "Reading package lists... Done"
 
1 members found this post helpful.
Old 12-15-2018, 10:33 PM   #11
steelheat
Member
 
Registered: Jun 2006
Location: Western US of A
Distribution: Kubuntu20.04,Debian 9,10,11,#419541 wRegistered user ith the Linux Counter
Posts: 86

Original Poster
Rep: Reputation: 7
Quote:
Originally Posted by Brains View Post
Absolutely. Looks good, if there were any updates available they would have been listed after "Reading package lists... Done"
Alright! Thanks a million, I feel better now....... go linux!
 
Old 12-18-2018, 05:59 AM   #12
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Brains View Post
Absolutely. Looks good, if there were any updates available they would have been listed after "Reading package lists... Done"
I don't know which version of apt-get you are running but that isn't normally the case for apt-get update. The OP should now run sudo apt-get upgrade to ensure that any upgradeable packages are upgraded.

On the other hand, the newer application apt (as in sudo apt update) *does* provide info on whether there are any upgradeable packages once it has synchronised the package data.

The OP also removed some external repos that relate (perhaps) to packages installed on their system. The Etcher one, for example, can be replaced. If you would like to work through those repos, decide which software they related to, and find the relevant repos for your system then please let me know.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not able to run this command "sudo apt-get install libdevil-dev" even after trying "apt-get -f install" getting below error message srihariu1 Linux - Embedded & Single-board computer 2 04-26-2018 06:33 AM
unique password for "update" and "synaptic" and "apt-get" SaintDanBert Linux - Security 1 09-17-2010 04:53 AM
apt-get update and apt-get install problem please solve it. regent_royal Linux - Newbie 11 06-26-2008 07:38 AM
Help With Java Problem Please"""""""""""" suemcholan Linux - Newbie 1 04-02-2008 06:02 PM
Does 'apt-get update' update the database used by 'apt-cache'? davidas Debian 5 04-20-2004 01:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration