LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-21-2017, 03:01 AM   #1
shams
Member
 
Registered: Jan 2004
Posts: 508

Rep: Reputation: 30
aptitude didn't use my local hard disk repo?


Hi,
I installed a new copy of ubuntu 17.04, i already had many deb packages of this ubuntu 17.04 in my external hard disk, i created a local repo in my home directory for this packages and added to the /etc/apt/sources.list:
Code:
deb file:/home/user/repo ./
Then run the apt-get update, and apt-get added the local repo to the cashe:
Code:
repo# apt-get update
Get:1 file:/home/user/repo ./ InRelease
Ign:1 file:/home/user/repo ./ InRelease
Get:2 file:/home/user/repo ./ Release
Ign:2 file:/home/user/repo ./ Release
Get:3 file:/home/user/repo ./ Packages
Ign:3 file:/home/user/repo ./ Packages
Get:4 file:/home/user/repo ./ Translation-en_US
Ign:4 file:/home/user/repo ./ Translation-en_US
Get:5 file:/home/user/repo ./ Translation-en
Ign:5 file:/home/user/repo ./ Translation-en
Get:3 file:/home/user/repo ./ Packages
Ign:3 file:/home/user/repo ./ Packages
Get:4 file:/home/user/repo ./ Translation-en_US
Ign:4 file:/home/user/repo ./ Translation-en_US
Get:5 file:/home/user/repo ./ Translation-en
Ign:5 file:/home/user/repo ./ Translation-en
Get:3 file:/home/user/repo ./ Packages
Ign:3 file:/home/user/repo ./ Packages
Get:4 file:/home/user/repo ./ Translation-en_US
Ign:4 file:/home/user/repo ./ Translation-en_US
Get:5 file:/home/user/repo ./ Translation-en
Ign:5 file:/home/user/repo ./ Translation-en
Get:3 file:/home/user/repo ./ Packages
Ign:3 file:/home/user/repo ./ Packages
Get:4 file:/home/user/repo ./ Translation-en_US
Ign:4 file:/home/user/repo ./ Translation-en_US
Get:5 file:/home/user/repo ./ Translation-en
Ign:5 file:/home/user/repo ./ Translation-en
Get:3 file:/home/user/repo ./ Packages
Ign:3 file:/home/user/repo ./ Packages
Get:4 file:/home/user/repo ./ Translation-en_US
Ign:4 file:/home/user/repo ./ Translation-en_US
Get:5 file:/home/user/repo ./ Translation-en
Ign:5 file:/home/user/repo ./ Translation-en
Get:3 file:/home/user/repo ./ Packages [1٬584 kB]
Get:4 file:/home/user/repo ./ Translation-en_US
Ign:4 file:/home/user/repo ./ Translation-en_US
Get:5 file:/home/user/repo ./ Translation-en
Ign:5 file:/home/user/repo ./ Translation-en
aptitude didn't use the local repo and downloading the same local packages from the online repos which are also included in the sources.list.
In the end of apt-get update also get this error message:
Code:
Fetched 71٫8 kB in 8min 35s (139 B/s)
Reading package lists... Done
W: The repository 'file:/home/user/repo ./ 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.

Last edited by shams; 04-21-2017 at 03:07 AM.
 
Old 04-22-2017, 05:17 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
What you received wasn't an error message, it was a warning message. If you want to authenticate the repo, see https://askubuntu.com/questions/1703...apt-repository ("Creating an Authenticated Repository" answer).

Just a point of note that apt (the package which provides apt-get) is not aptitude - they are two separate packages.

If you want to properly test the local repo, temporarily disable the online repos.
 
Old 04-22-2017, 03:37 PM   #3
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,129

Rep: Reputation: 42
Quote:
Originally Posted by hydrurga View Post
If you want to authenticate the repo, see https://askubuntu.com/questions/1703...apt-repository ("Creating an Authenticated Repository" answer).
Why not replicating that here?


Quote:
Originally Posted by hydrurga View Post
If you want to properly test the local repo, temporarily disable the online repos.
How do we do that?
 
Old 04-22-2017, 04:12 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
Quote:
Originally Posted by dedec0 View Post
Why not replicating that here?
I don't understand that question, sorry.

Quote:
Originally Posted by dedec0 View Post
How do we do that?
Comment out the online repos in /etc/apt/sources.list and /etc/apt/sources.list.d/*.list, or disable them through (I think, as I don't use Ubuntu) Ubuntu Software->Software & Updates.
 
Old 04-22-2017, 04:43 PM   #5
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,129

Rep: Reputation: 42
> > > If you want to authenticate the repo, see
> > > askubuntu.com/questions/170348/how-to-create-a-local-apt-repository
> > > ("Creating an Authenticated Repository" answer).

> > Why not replicating that here?

> I don't understand that question, sorry.

Sometimes things get broken because linked information becomes unavailable. To avoid that, I replicate such contents (to replicate is to copy). And Ubuntu does not have good antecedents: it ceased existence of UbuntuOne service.
 
Old 04-22-2017, 06:09 PM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
Quote:
Originally Posted by dedec0 View Post
> > > If you want to authenticate the repo, see
> > > askubuntu.com/questions/170348/how-to-create-a-local-apt-repository
> > > ("Creating an Authenticated Repository" answer).

> > Why not replicating that here?

> I don't understand that question, sorry.

Sometimes things get broken because linked information becomes unavailable. To avoid that, I replicate such contents (to replicate is to copy). And Ubuntu does not have good antecedents: it ceased existence of UbuntuOne service.
Ah, I understand. The idea is that *you* read the page, you extract the information you want, you try a few things, and then when you find something that works, you come back on here and let us know what you did. I'm just pointing you in the general direction, I don't have the time to do all that for you, sorry.
 
Old 04-22-2017, 06:41 PM   #7
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,129

Rep: Reputation: 42
hahahahaha I did not even read that page (yet). And I thought you pointed the askubuntu page knowing what is written there - and also knowing "how to create a local apt repository".
 
Old 04-23-2017, 03:06 AM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917Reputation: 2917
Quote:
Originally Posted by dedec0 View Post
hahahahaha I did not even read that page (yet). And I thought you pointed the askubuntu page knowing what is written there - and also knowing "how to create a local apt repository".
Well, I did read the page and made a judgement that it contained the info that would be required to create a signed local repository, or at least get you started along the right path. But no, I've never done so myself.

It's something that I imagine a great number of people have done, so there should be a lot of information about it on the internet.
 
  


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
[SOLVED] Aptitude - Repo Issues Tech7 Linux - Networking 1 02-08-2014 10:21 AM
[SOLVED] How much Disk space is needed to setup a local repo mirror? worm5252 Linux - Newbie 3 01-31-2010 07:51 PM
how can i add a local Folder on local Hard Disk as Yum Repository ?? vahid_p Fedora 4 02-22-2007 10:43 AM
want to share local hard disk with all users infected Linux - General 5 09-02-2004 09:37 PM
install suse 9 from local hard disk demmylls Linux - General 3 01-15-2004 05:47 PM

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

All times are GMT -5. The time now is 10:01 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