problem with local repository

Kernels & Hardware, configuring network, installing services

problem with local repository

Postby debianyuser » 2018-01-05 09:31

Hello everyone,
I have local repository for Debian testing-amd64 on my pc1, this pc1 is running apache2, as server.
on the pc2, I have /etc/apt/sources.list:
deb http://192.168.1.2/Debian/ testing main non-free contrib


so when I try to update my pc2, I get this message:
sudo apt-get update
Ign:1 http://192.168.1.2/Debian testing InRelease
Get:2 http://192.168.1.2/Debian testing Release [2,469 B]
Ign:3 http://192.168.1.2/Debian testing Release.gpg
Reading package lists... Done
E: The repository 'http://192.168.1.2/Debian testing Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.


I cannot update pc2, because local repository is not signed, How to sign it?
btw, packages in local repository are not modified, I just used reprepro to create local repository.
Thanks
debianyuser
 
Posts: 4
Joined: 2017-08-29 15:47

Re: problem with local repository

Postby dilberts_left_nut » 2018-01-05 10:01

See apt-secure(8) manpage for repository creation and user configuration details
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4740
Joined: 2009-10-05 07:54
Location: enzed

Re: problem with local repository

Postby debianyuser » 2018-01-05 11:58

dilberts_left_nut wrote:See apt-secure(8) manpage for repository creation and user configuration details

great, It worked with:
sudo apt update --allow-insecure-repositories

but because they say it's bad to ignore the signatures for many reasons, Is there a way to sign my local repository? I don't want to rebuild all packages or modify them.
Thanks
debianyuser
 
Posts: 4
Joined: 2017-08-29 15:47

Re: problem with local repository

Postby wizard10000 » 2018-01-05 12:02

debianyuser wrote:...Is there a way to sign my local repository? I don't want to rebuild all packages or modify them.


The man page cited above tells you exactly what you need to do to sign your own repositories.
we see things not as they are, but as we are.
-- anais nin
User avatar
wizard10000
 
Posts: 1230
Joined: 2011-05-09 20:02
Location: everywhere i go, there i am!


Return to System configuration

Who is online

Users browsing this forum: nixer and 6 guests

fashionable