LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Getting local repo to work with apt-get (https://www.linuxquestions.org/questions/linux-software-2/getting-local-repo-to-work-with-apt-get-4175602670/)

Mill J 03-27-2017 08:24 PM

Getting local repo to work with apt-get
 
I'm trying to make a local repository that I can use with apt. I tried dpkg-scanpackages and everything worked fine and when i ran apt-get update it picked it up. But it complained about the repo not being secure. and it doesn't work. I'm wondering if there is a way to allow unsigned repos to work. I know I could do it on Mint 17.3 but on Mint 18.1 it doesn't work.

Ztcoracat 03-27-2017 09:38 PM

Quote:

But it complained about the repo not being secure.
Is this the message your getting?
Code:

Updating from such a repository can't be done securely and is therefore disabled by default
Keep in mind that allowing unsigned repos to work is likely; risky.

http://askubuntu.com/questions/73298...y-ubuntu-16-04

Habitual 03-28-2017 05:13 AM

Without knowing what your references are for building this repo, I can only guess at the resolution.
(always cite references when asking for help please)
sources would be helpful too for this repo.

Worked in 17.x but not 18.1?
How was 18 "installed"? New, Upgrade?

If Ztcoracat is correct, then maybe...
Code:

sudo apt show apt-transport-https
package says

Code:

Description: https download transport for APT
 This package enables the usage of 'deb https://foo distro main' lines
 in the /etc/apt/sources.list so that all package managers using the
 libapt-pkg library can access metadata and packages available in sources
 accessible over https (Hypertext Transfer Protocol Secure).

https://help.ubuntu.com/community/Repositories/Personal seems pretty straight forward.
but does not discuss this package named here.

Mill J 03-29-2017 08:15 AM

http://www.linuxwave.info/2009/04/ad...o-apt.html?m=1 Was my reference. Here is part of apt-get update:
Code:

N: Can't drop privileges for downloading as file '/media/mill/Repo/repo/main/InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
W: The repository 'file:/ /media/mill/Repo/repo/main/ 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.

Here is the man page for apt-secure. http://manpages.ubuntu.com/manpages/...-secure.8.html

And yes it is a new mint install.


All times are GMT -5. The time now is 09:50 PM.