Apt-get has failed

Having issues with your DietPi installation, or, found a bug? Post it here.
brtravel
Posts: 51
Joined: Sat Sep 16, 2017 2:04 pm

Apt-get has failed

Post by brtravel »

Odroid C2 running well with Plex server and pihole. Went to add Sonarr and got this:
Screen Shot 2017-10-06 at 11.47.07 PM.png
back at root I see these suggested steps:
Screen Shot 2017-10-07 at 1.14.27 AM.png
I went through those steps, tried to install Sonarr again, and got the same error.

Sorry, I don't have a Github account to place the error report there, I hope posting here is satisfactory.
User avatar
WarHawk
Posts: 606
Joined: Thu Jul 20, 2017 8:55 am

Re: Apt-get has failed

Post by WarHawk »

is it a fresh install, or did you upgrade from dietpi v144 to v156 yet?

Code: Select all

dietpi-update
brtravel
Posts: 51
Joined: Sat Sep 16, 2017 2:04 pm

Re: Apt-get has failed

Post by brtravel »

WarHawk wrote:is it a fresh install, or did you upgrade from dietpi v144 to v156 yet?

Code: Select all

dietpi-update
It's v156, tried dietpi-update, says it's up to date. just tried installing Sonarr again, same error.

thanks for any help you can provide.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Apt-get has failed

Post by Fourdee »

Hi,

Just tested on Odroid C2 with fresh image install, appears fine.

Issue may be related to your apt configuration, or software installed.

To debug, we'll need to see the apt log, after you receive the error. Please upload the following file:

Code: Select all

 /var/log/dietpi-software_apt.log
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
brtravel
Posts: 51
Joined: Sat Sep 16, 2017 2:04 pm

Re: Apt-get has failed

Post by brtravel »

Fourdee wrote:To debug, we'll need to see the apt log, after you receive the error. Please upload the following file:

Code: Select all

 /var/log/dietpi-software_apt.log
Once again, major :!: newb alert :!:

:?

How do I get the apt log? I tried that code in the command line and it says not found, I found in another thread someone told to use the same but with 'cat' in front, so I did that and got this:

Code: Select all

root@DietPi:~# cat /var/log/dietpi-software_apt.log
E: Unable to locate package nzbdrone
Is that all? obviously rather brief, so I expect not.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Apt-get has failed

Post by Fourdee »

brtravel wrote:

Code: Select all

root@DietPi:~# cat /var/log/dietpi-software_apt.log
E: Unable to locate package nzbdrone
Thats the one :)

Looks like the additional repo is not functioning. Lets try adding it manually:

Code: Select all

dpkg --add-architecture armhf
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FDA5DFFC
echo -e "deb [arch=armhf] https://apt.sonarr.tv/ master main" > /etc/apt/sources.list.d/sonarr.list
apt-get update
Then lets try installing the package:

Code: Select all

nzbdrone
If unsure of output, copy and paste the results of all of those commands, i'll take a look.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
brtravel
Posts: 51
Joined: Sat Sep 16, 2017 2:04 pm

Re: Apt-get has failed

Post by brtravel »

Fourdee wrote: Then lets try installing the package:

Code: Select all

nzbdrone
If unsure of output, copy and paste the results of all of those commands, i'll take a look.
ran the first part, then tried nzbdrone:

Code: Select all

root@DietPi:~# nzbdrone
-bash: nzbdrone: command not found
Just for kicks I tried the Sonarr install again from dietpi-software and got the same error there.

I appreciate the help so much! I hope this isn't a dead-end.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Apt-get has failed

Post by Fourdee »

brtravel wrote: Just for kicks I tried the Sonarr install again from dietpi-software and got the same error there.

I appreciate the help so much! I hope this isn't a dead-end.
Hi,

Must be an issue with apt sources. We'll need a bug report to investigate further.

Please run the following commands. This will fill the logs up with info we need before sending, and send a bug report:

Code: Select all

dietpi-software install 114
dietpi-bugreport
Once sent, please reply with unique reference code.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
brtravel
Posts: 51
Joined: Sat Sep 16, 2017 2:04 pm

Re: Apt-get has failed

Post by brtravel »

Fourdee wrote:Once sent, please reply with unique reference code.
Here ya go!

Reference CODE: 9f0321ed-289d-4e26-850b-a30a71dc0ee0-0
brtravel
Posts: 51
Joined: Sat Sep 16, 2017 2:04 pm

Re: Apt-get has failed

Post by brtravel »

Fourdee wrote:Must be an issue with apt sources. We'll need a bug report to investigate further.
Update:

I see there is a DietPi update to v157, so I did the update and tried again. No luck.

Code: Select all

...
Ign http://fuzon.co.uk jessie/main Translation-en                              
Fetched 197 kB in 21s (9,047 B/s)                                              
Reading package lists... Done
 [Info] Apt-get is processing, please wait...

E: Unable to locate package nzbdrone
 [Failed] The apt cache may be corrupt, apt mirror offline, or you have held broken packages. DietPi-Software will now exit.

 [Info] Apt Log:
E: Unable to locate package nzbdrone
Post Reply