LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-08-2019, 03:41 AM   #1
arcus
LQ Newbie
 
Registered: Feb 2019
Posts: 8

Rep: Reputation: Disabled
Update source index?


Hello first time posting here;

Linux Ubuntu 16
Update managers not working

Code:
sudo apt-get update
Terminal Response:

Code:
E: Type 'gpg' is not known on line 1 in source list /etc/apt/sources.list.d/signal-xenial.list
E: The list of sources could not be read.
I think there is a wrong source file in the index, how do i fix this?
Thanks
 
Old 02-08-2019, 05:23 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,599

Rep: Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361
so what is in that file on line 1?
 
Old 02-08-2019, 06:11 AM   #3
arcus
LQ Newbie
 
Registered: Feb 2019
Posts: 8

Original Poster
Rep: Reputation: Disabled
gpg (GnuPG) 2.2.4
 
Old 02-08-2019, 06:19 AM   #4
arcus
LQ Newbie
 
Registered: Feb 2019
Posts: 8

Original Poster
Rep: Reputation: Disabled
If it is a problem with the application Signal; I can remove it, since i do not use it anymore. I do get the same error message if i try and --purge remove it though.
 
Old 02-08-2019, 07:19 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,599

Rep: Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361Reputation: 4361
I think that line is syntactically incorrect, try to insert a # at the beginning.
 
Old 02-08-2019, 08:05 AM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,018
Blog Entries: 5

Rep: Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872
Can you please paste the output from the following command so that we can have a look at your software sources.

Code:
inxi -r
If you don't have inxi installed and are unable to do so, please paste the output from:

Code:
for i in /etc/apt/sources.list{,.d/*}; do echo file: $i; cat $i; echo ====; done
 
Old 02-08-2019, 06:10 PM   #7
arcus
LQ Newbie
 
Registered: Feb 2019
Posts: 8

Original Poster
Rep: Reputation: Disabled
Code:
 Active apt sources in file: /etc/apt/sources.list
           deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
           deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
           deb http://us.archive.ubuntu.com/ubuntu/ bionic universe
           deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates universe
           deb http://us.archive.ubuntu.com/ubuntu/ bionic multiverse
           deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
           deb http://us.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
           deb http://security.ubuntu.com/ubuntu bionic-security main restricted
           deb http://security.ubuntu.com/ubuntu bionic-security universe
           deb http://security.ubuntu.com/ubuntu bionic-security multiverse
           Active apt sources in file: /etc/apt/sources.list.d/apandada1-ubuntu-brightness-controller-bionic.list
           deb http://ppa.launchpad.net/apandada1/brightness-controller/ubuntu bionic main
           Active apt sources in file: /etc/apt/sources.list.d/google-earth-pro.list
           deb http://dl.google.com/linux/earth/deb/ stable main
           Active apt sources in file: /etc/apt/sources.list.d/graphics-drivers-ubuntu-ppa-bionic.list
           deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic main
           Active apt sources in file: /etc/apt/sources.list.d/micahflee-ubuntu-ppa-bionic.list
           deb http://ppa.launchpad.net/micahflee/ppa/ubuntu bionic main
           Active apt sources in file: /etc/apt/sources.list.d/runescape.list
           deb https://content.runescape.com/downloads/ubuntu trusty non-free
           Active apt sources in file: /etc/apt/sources.list.d/seafile.list
           deb http://deb.seadrive.org jessie main
           Active apt sources in file: /etc/apt/sources.list.d/signal-xenial.list
           gpg (GnuPG) 2.2.4
           libgcrypt 1.8.1
           Copyright (C) 2017 Free Software Foundation, Inc.
           License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
           This is free software: you are free to change and redistribute it.
           There is NO WARRANTY, to the extent permitted by law.
           Home: /tmp/apt-key-gpghome.7ViMquVhb2
           Supported algorithms:
           Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
           Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
           CAMELLIA128, CAMELLIA192, CAMELLIA256
           Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
           Compression: Uncompressed, ZIP, ZLIB, BZIP2
           Syntax: gpg [options] [files]
           Sign, check, encrypt or decrypt
           Default operation depends on the input data
           Commands:
           -s, --sign make a signature
           --clear-sign make a clear text signature
           -b, --detach-sign make a detached signature
           -e, --encrypt encrypt data
           -c, --symmetric encryption only with symmetric cipher
           -d, --decrypt decrypt data (default)
           --verify verify a signature
           -k, --list-keys list keys
           --list-signatures list keys and signatures
           --check-signatures list and check key signatures
           --fingerprint list keys and fingerprints
           -K, --list-secret-keys list secret keys
           --generate-key generate a new key pair
           --quick-generate-key quickly generate a new key pair
           --quick-add-uid quickly add a new user-id
           --quick-revoke-uid quickly revoke a user-id
           --quick-set-expire quickly set a new expiration date
           --full-generate-key full featured key pair generation
           --generate-revocation generate a revocation certificate
           --delete-keys remove keys from the public keyring
           --delete-secret-keys remove keys from the secret keyring
           --quick-sign-key quickly sign a key
           --quick-lsign-key quickly sign a key locally
           --sign-key sign a key
           --lsign-key sign a key locally
           --edit-key sign or edit a key
           --change-passphrase change a passphrase
           --export export keys
           --send-keys export keys to a keyserver
           --receive-keys import keys from a keyserver
           --search-keys search for keys on a keyserver
           --refresh-keys update all keys from a keyserver
           --import import/merge keys
           --card-status print the card status
           --edit-card change data on a card
           --change-pin change a card's PIN
           --update-trustdb update the trust database
           --print-md print message digests
           --server run in server mode
           --tofu-policy VALUE set the TOFU policy for a key
           Options:
           -a, --armor create ascii armored output
           -r, --recipient USER-ID encrypt for USER-ID
           -u, --local-user USER-ID use USER-ID to sign or decrypt
           -z N set compress level to N (0 disables)
           --textmode use canonical text mode
           -o, --output FILE write output to FILE
           -v, --verbose verbose
           -n, --dry-run do not make any changes
           -i, --interactive prompt before overwriting
           --openpgp use strict OpenPGP behavior
           (See the man page for a complete listing of all commands and options)
           Examples:
           -se -r Bob [file] sign and encrypt for user Bob
           --clear-sign [file] make a clear text signature
           --detach-sign [file] make a detached signature
           --list-keys [names] show keys
           --fingerprint [names] show fingerprints
           Please report bugs to <https://bugs.gnupg.org>.
           OK
           deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main
           Active apt sources in file: /etc/apt/sources.list.d/steam.list
           deb [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
           deb-src [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
 
Old 02-08-2019, 06:28 PM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,018
Blog Entries: 5

Rep: Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872
Thanks. You need to delete /etc/apt/sources.list.d/signal-xenial.list - it's not constructed properly.

However, the rest are also a hotch-potch. You should not mix repositories from different Ubuntu versions. You have a mix of bionic, trusty, precise, xenial and, for good measure, Debian Jessie. I'm honestly surprised that your system is still working.

Let's go back to basics. Exactly which version of Ubuntu are you running (inxi -S). You say 16, but your software sources disagree.
 
Old 02-08-2019, 06:55 PM   #9
arcus
LQ Newbie
 
Registered: Feb 2019
Posts: 8

Original Poster
Rep: Reputation: Disabled
System: Host: Progress-2 Kernel: 4.15.0-42-generic x86_64 bits: 64 Desktop: Gnome 3.28.3
Distro: Ubuntu 18.04.1 LTS

thanks that worked, i'll just delete some of those other programs now.
 
Old 02-08-2019, 07:04 PM   #10
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,018
Blog Entries: 5

Rep: Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872
Quote:
Originally Posted by arcus View Post
System: Host: Progress-2 Kernel: 4.15.0-42-generic x86_64 bits: 64 Desktop: Gnome 3.28.3
Distro: Ubuntu 18.04.1 LTS

thanks that worked, i'll just delete some of those other programs now.
We first have to sort out the repositories. Deleting or purging a program does not delete the associated repository.

Looking through your sources, which of the following do you still use?

Brightness Controller, Google Earth Pro, Tor Browser (or PDF Redact Tools), Runescape, Seafile Drive Client, Signal, Steam.
 
Old 02-08-2019, 07:11 PM   #11
arcus
LQ Newbie
 
Registered: Feb 2019
Posts: 8

Original Poster
Rep: Reputation: Disabled
brightness controller, google earth pro, steam
 
Old 02-08-2019, 07:15 PM   #12
arcus
LQ Newbie
 
Registered: Feb 2019
Posts: 8

Original Poster
Rep: Reputation: Disabled
and runescape
 
Old 02-08-2019, 07:31 PM   #13
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,018
Blog Entries: 5

Rep: Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872
Thanks. You can delete:

/etc/apt/sources.list.d/micahflee-ubuntu-ppa-bionic.list
/etc/apt/sources.list.d/seafile.list
/etc/apt/sources.list.d/signal-xenial.list

(It seems that Runescape (https://www.runescape.com/download) is advising that you grab the trusty version no matter which Ubuntu-variant you have, unless they haven't updated their website. Similarly, Steam only appears to have a repo tagged 'precise', so we'll leave these alone. It's a pity though that these guys aren't either creating repos for each Ubuntu version or completely getting get rid of any version tag rather than causing potential confusion and mixing of version repositories. Such is life.)

Once you've deleted the above files, run:

Code:
sudo apt update
and

Code:
sudo apt upgrade
 
Old 02-08-2019, 09:16 PM   #14
arcus
LQ Newbie
 
Registered: Feb 2019
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks, I did exactly this.
 
Old 02-08-2019, 10:15 PM   #15
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,018
Blog Entries: 5

Rep: Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872
Ok. Let us know if you have any other issues.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to change the default webpage configuration from index.php to index.htm, etc meema Linux - Server 4 08-22-2008 10:06 PM
Apache 404 index.php not Found but index.php exists at document root mark84 Linux - Server 20 07-27-2008 02:55 AM
apache index.html doesn't show up but index.php do zoffmann Linux - Server 5 01-28-2008 04:53 PM
Where to put index.php (or index.html) on Slackware 11.0 moonguide Slackware 3 05-08-2007 07:35 PM
Installing icon theme? i have a index.theme and index.desktop, no directions! mr_coffee Linux - Newbie 2 01-25-2006 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration