LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-01-2017, 08:18 AM   #1
shams
Member
 
Registered: Jan 2004
Posts: 514

Rep: Reputation: 30
apt-get update errror:N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.


Hi,
I installed the ubuntu 17.04 beta2 and the apt-cacher-ng this is the part of the sources.list:
Code:
deb http://127.0.0.1:3142/linux.nsu.ru/ubuntu/ zesty main restricted
deb http://127.0.0.1:3142/linux.nsu.ru/ubuntu/ zesty-updates main restricted
deb http://127.0.0.1:3142/linux.nsu.ru/ubuntu/ zesty-updates universe
when i run the apt-get update it is working but cannot retrieve dists cache and get this error in the end:
Code:
Ign:51 http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu zesty-updates/restricted i386 Packages
Err:73 http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu zesty-backports/main amd64 Packages
  404  Not Found
Ign:74 http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu zesty-backports/main all Packages
Ign:75 http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu zesty-backports/main i386 Packages
Ign:76 http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu zesty-backports/main Translation-en_US
Ign:77 http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu zesty-backports/main Translation-en
Ign:78 http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu zesty-backports/main all DEP-11 Metadata
Ign:79 http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu zesty-backports/main amd64 DEP-11 Metadata
Ign:80 http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu zesty-backports/main DEP-11 64x64 Icons
Ign:81 http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu zesty-backports/restricted i386 Packages
Ign:82 http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu zesty-backports/restricted amd64 Packages
Ign:83 http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu zesty-backports/restricted all Packages
Reading package lists... Done
W: The repository 'http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu zesty Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu zesty-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu zesty-backports Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
I searched the google and some one told remove the cdrom from sources.list it was not enable but i deleted the cdrom from the sources.list and still it doesn't work.
 
Old 04-01-2017, 12:47 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,918

Rep: Reputation: 176Reputation: 176
~$ man apt-secure

Code:
APT-SECURE(8)                                  APT                                  APT-SECURE(8)

NAME
       apt-secure - Archive authentication support for APT

DESCRIPTION
       Starting with version 0.6, apt contains code that does signature checking of the Release
       file for all archives. This ensures that packages in the archive can't be modified by
       people who have no access to the Release file signing key.

       If a package comes from a archive without a signature, or with a signature that apt does
       not have a key for, that package is considered untrusted, and installing it will result in
       a big warning.  apt-get will currently only warn for unsigned archives; future releases
       might force all sources to be verified before downloading packages from them.

       The package frontends apt-get(8), aptitude(8) and synaptic(8) support this new
       authentication feature.
Seems fairly straight forward to me from reading that you need to create a signed Release file for the local repository and add the key used for signing to keyring for it to be verified.
 
1 members found this post helpful.
Old 04-02-2017, 06:05 PM   #3
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918
Can you please paste the output from inxi -r (install inxi if it isn't already installed).

That will allow us to see how the software sources are set up.
 
Old 04-05-2017, 12:03 PM   #4
shams
Member
 
Registered: Jan 2004
Posts: 514

Original Poster
Rep: Reputation: 30
Thanks for replies,the main problem is with the apt-cacher-ng, without that apt-get is working. i need apt-cacher-ng to use the downloaded packages for other pc's. this is the sources.list:
Code:
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu/ zesty main restricted
# deb-src http://af.archive.ubuntu.com/ubuntu/ zesty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu/ zesty-updates main restricted
# deb-src http://af.archive.ubuntu.com/ubuntu/ zesty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu/ zesty universe
# deb-src http://af.archive.ubuntu.com/ubuntu/ zesty universe
deb http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu/ zesty-updates universe
# deb-src http://af.archive.ubuntu.com/ubuntu/ zesty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu/ zesty multiverse
# deb-src http://af.archive.ubuntu.com/ubuntu/ zesty multiverse
deb http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu/ zesty-updates multiverse
# deb-src http://af.archive.ubuntu.com/ubuntu/ zesty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://127.0.0.1:3142/af.archive.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiverse
# deb-src http://af.archive.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://127.0.0.1:3142/archive.canonical.com/ubuntu zesty partner
# deb-src http://archive.canonical.com/ubuntu zesty partner

deb http://127.0.0.1:3142/security.ubuntu.com/ubuntu zesty-security main restricted
# deb-src http://security.ubuntu.com/ubuntu zesty-security main restricted
deb http://127.0.0.1:3142/security.ubuntu.com/ubuntu zesty-security universe
# deb-src http://security.ubuntu.com/ubuntu zesty-security universe
deb http://127.0.0.1:3142/security.ubuntu.com/ubuntu zesty-security m

Last edited by shams; 04-05-2017 at 12:09 PM.
 
  


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
LXer: Create a Local Ubuntu Repository using Apt-Mirror and Apt-Cacher LXer Syndicated Linux News 0 08-04-2009 10:13 PM
Custom apt-repository for sid apt-get upgrades Cyberman Debian 1 02-20-2009 12:21 PM
LXer: On data models, data types and dangerous liaisons LXer Syndicated Linux News 0 07-22-2006 10:33 PM
update GCC is so dangerous? Xavius Linux - Software 3 01-04-2005 03:48 PM
apt Repository Update Problem pwo Linux - Software 5 10-12-2004 12:01 AM

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

All times are GMT -5. The time now is 04:35 PM.

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