[Solved] Remove source and key

New to Debian (Or Linux in general)? Ask your questions here!

[Solved] Remove source and key

Postby Lamios » 2018-01-25 20:42

I tried to install Psychtoolbox-3 via NeuroDebian: http://neuro.debian.net/install_pkg.htm ... htoolbox-3
As stated there, I used the following commands for adding the source and the key:
Code: Select all
wget -O- http://neuro.debian.net/lists/stretch.de-md.libre | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
sudo apt-key adv --recv-keys --keyserver hkp://pool.sks-keyservers.net:80 0xA5D32F012649A5A9

I think the source or key is maybe incomplete (it asked me for the configuration of a dpa server, but had not been stoppable than, when I cancelled it to try to find more informations in before).

Because I had several problems with the installation I ended up with installing Psychtoolbox-3 via the Debian package system. This actually worked.

However, now it seems there is something wrong with the source (this had been working in before, also with NeuroDebian):
Code: Select all
:~# aptitude update
Hit http://security.debian.org/debian-security stretch/updates InRelease
Ign http://ftp.de.debian.org/debian stretch InRelease
Hit http://neurodebian.ovgu.de/debian data InRelease
Hit http://ftp.de.debian.org/debian stretch-updates InRelease
Hit http://neurodebian.ovgu.de/debian stretch InRelease
Hit http://ftp.de.debian.org/debian stretch Release
W: http://security.debian.org/debian-security/dists/stretch/updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://neurodebian.ovgu.de/debian/dists/data/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://ftp.de.debian.org/debian/dists/stretch-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://neurodebian.ovgu.de/debian/dists/stretch/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://ftp.de.debian.org/debian/dists/stretch/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.


Because I installed Psychtoolbox-3 via the Debian packages, I do not need the source and the key anymore and I think it is best to delete them both (as they are making problems right now anyway).
apt-key list gives the following:
Code: Select all
/etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg
----------------------------------------------------------
pub   rsa4096 2014-11-21 [SC] [expires: 2022-11-19]
      126C 0D24 BD8A 2942 CC7D  F8AC 7638 D044 2B90 D010
uid           [ unknown] Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>

/etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg
-------------------------------------------------------------------
pub   rsa4096 2014-11-21 [SC] [expires: 2022-11-19]
      D211 6914 1CEC D440 F2EB  8DDA 9D6D 8F6B C857 C906
uid           [ unknown] Debian Security Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>

/etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg
-------------------------------------------------------
pub   rsa4096 2013-08-17 [SC] [expires: 2021-08-15]
      75DD C3C4 A499 F1A1 8CB5  F3C8 CBF8 D6FD 518E 17E1
uid           [ unknown] Jessie Stable Release Key <debian-release@lists.debian.org>

/etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg
-----------------------------------------------------------
pub   rsa4096 2017-05-22 [SC] [expires: 2025-05-20]
      E1CF 20DD FFE4 B89E 8026  58F1 E0B1 1894 F66A EC98
uid           [ unknown] Debian Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>
sub   rsa4096 2017-05-22 [S] [expires: 2025-05-20]

/etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg
--------------------------------------------------------------------
pub   rsa4096 2017-05-22 [SC] [expires: 2025-05-20]
      6ED6 F5CB 5FA6 FB2F 460A  E88E EDA0 D238 8AE2 2BA9
uid           [ unknown] Debian Security Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>
sub   rsa4096 2017-05-22 [S] [expires: 2025-05-20]

/etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg
--------------------------------------------------------
pub   rsa4096 2017-05-20 [SC] [expires: 2025-05-18]
      067E 3C45 6BAE 240A CEE8  8F6F EF0F 382A 1A7B 6500
uid           [ unknown] Debian Stable Release Key (9/stretch) <debian-release@lists.debian.org>

/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
----------------------------------------------------------
pub   rsa4096 2012-04-27 [SC] [expires: 2020-04-25]
      A1BD 8E9D 78F7 FE5C 3E65  D8AF 8B48 AD62 4692 5553
uid           [ unknown] Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>

/etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
-------------------------------------------------------
pub   rsa4096 2012-05-08 [SC] [expires: 2019-05-07]
      ED6D 6527 1AAC F0FF 15D1  2303 6FB2 A1C2 65FF B764
uid           [ unknown] Wheezy Stable Release Key <debian-release@lists.debian.org>

/etc/apt/trusted.gpg.d/neurodebian-archive-keyring.gpg
------------------------------------------------------
pub   dsa1024 2006-04-11 [SC]
      DD95 CC43 0502 E37E F840  ACEE A5D3 2F01 2649 A5A9
uid           [ unknown] NeuroDebian Archive Key <pkg-exppsy-maintainers@lists.alioth.debian.org>
uid           [ unknown] apsy.gse.uni-magdeburg.de Debian Archive <michael.hanke@gmail.com>
uid           [ unknown] neuro.debian.net archive <michael.hanke@gmail.com>
sub   elg2048 2006-04-11 [E]


Just to make sure that I am not doing something worse (like deleting the wrong key) because of unknowing:
I think the command to delete the key should be something like "apt-key del <keyname>" but I am not really sure whether it is correct and which part I have to add for the NeuroDebian key in the last line.
Can I simply delete the file 'sources.list.d/neurodebian.sources.list' in '/etc/apt/sources.list.d/neurodebian.sources.list' to remove NeuroDebian source?
Last edited by Lamios on 2018-01-28 13:27, edited 1 time in total.
Lamios
 
Posts: 31
Joined: 2017-12-09 23:26

Re: Remove source and key

Postby Lamios » 2018-01-28 13:27

0k, it is solved.
I moved /etc/apt/sources.list.d/neurodebian.sources.list to another place and deleted the NeuroDebian with apt-key del A5D32F012649A5A9 after making a backup from my keys.

The problems with the other keys
Code: Select all
:~# aptitude update
Hit http://security.debian.org/debian-security stretch/updates InRelease                             
Ign http://ftp.de.debian.org/debian stretch InRelease
Hit http://ftp.de.debian.org/debian stretch-updates InRelease
Hit http://ftp.de.debian.org/debian stretch Release
W: http://security.debian.org/debian-security/dists/stretch/updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://ftp.de.debian.org/debian/dists/stretch-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
W: http://ftp.de.debian.org/debian/dists/stretch/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.
had been solvable with mv /etc/apt/trusted.gpg ~/trusted.gpg from viewtopic.php?t=130558
Lamios
 
Posts: 31
Joined: 2017-12-09 23:26


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable