apt: command not found (!..)

Questions about software.
User avatar
EliaSXK91
Posts: 28
Joined: 06 May 2019 12:01

Re: apt: command not found (!..)

Postby EliaSXK91 » 14 Jun 2019 18:22

Of course, Arjen!..
It's just that i didn't have even a small answer/briefing for a few weeks in my topic
(as well as from anybody relevant else)
so i reckoned you were gone for any reason around...

So, back to your track of solution:

Code: Select all

elias@solydxk ~ $ export LC_ALL=C
elias@solydxk ~ $ LC_ALL=C sudo apt-get update
[sudo] password for elias: 
Get:1 http://security.debian.org stretch/updates InRelease [94.3 kB]
Ign:2 http://dl.google.com/linux/earth/deb stable InRelease                                      
Get:3 http://deb.debian.org/debian stretch-updates InRelease [91.0 kB]                           
Ign:4 http://ftp.debian.org/debian stretch InRelease                                             
Hit:5 http://dl.google.com/linux/earth/deb stable Release                                        
Get:6 http://ftp.debian.org/debian stretch-backports InRelease [91.8 kB]                         
Hit:7 http://linux.teamviewer.com/deb stable InRelease                                           
Hit:8 http://ftp.debian.org/debian stretch Release                                               
Get:10 http://security.debian.org stretch/updates/main amd64 Packages [497 kB]
Get:11 http://security.debian.org stretch/updates/main i386 Packages [499 kB]
Get:12 http://ftp.debian.org/debian stretch-backports/main amd64 Packages.diff/Index [27.8 kB]   
Get:14 http://ftp.debian.org/debian stretch-backports/main Translation-en.diff/Index [27.8 kB]   
Get:15 http://ftp.debian.org/debian stretch-backports/main amd64 Contents (deb).diff/Index [28.0 kB]
Get:16 http://ftp.debian.org/debian stretch-backports/main amd64 Packages 2019-06-14-1418.33.pdiff [1071 B]
Get:17 http://ftp.debian.org/debian stretch-backports/main Translation-en 2019-06-14-1418.33.pdiff [667 B]
Get:18 http://security.debian.org stretch/updates/main Translation-en [222 kB]
Get:16 http://ftp.debian.org/debian stretch-backports/main amd64 Packages 2019-06-14-1418.33.pdiff [1071 B]
Get:17 http://ftp.debian.org/debian stretch-backports/main Translation-en 2019-06-14-1418.33.pdiff [667 B]
Get:19 http://ftp.debian.org/debian stretch-backports/main amd64 Contents (deb) 2019-06-14-1418.33.pdiff [209 B]
Get:19 http://ftp.debian.org/debian stretch-backports/main amd64 Contents (deb) 2019-06-14-1418.33.pdiff [209 B]
Fetched 1580 kB in 5s (272 kB/s)                                                                 
Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
Target Translations (main/i18n/Translation-el) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
Target DEP-11-icons-hidpi (main/dep11/icons-128x128.tar) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
Reading package lists... Done
E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Translations (main/i18n/Translation-el) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-128x128.tar) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://dl.google.com/linux/earth/deb stable InRelease' doesn't support architecture 'i386'
E: Failed to fetch https://repository.solydxk.com/dists/solydxk-9/InRelease  
E: Some index files failed to download. They have been ignored, or old ones used instead.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Translations (main/i18n/Translation-el) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-128x128.tar) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
W: Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
elias@solydxk ~ $ LC_ALL=C apt policy solydxk-system solydk-system-adjustments*
solydxk-system:
  Installed: (none)
  Candidate: 3.3.6
  Version table:
     3.3.6 500
        500 https://repository.solydxk.com solydxk-9/main amd64 Packages
        500 https://repository.solydxk.com solydxk-9/main i386 Packages
solydk-system-adjustments:
  Installed: (none)
  Candidate: (none)
  Version table:
solydk-system-adjustments-8:
  Installed: (none)
  Candidate: (none)
  Version table:
     2.7.3 -1
        100 /var/lib/dpkg/status
solydk-system-adjustments-9:
  Installed: (none)
  Candidate: 3.0.5
  Version table:
     3.0.5 500
        500 https://repository.solydxk.com solydxk-9/main amd64 Packages
        500 https://repository.solydxk.com solydxk-9/main i386 Packages
elias@solydxk ~ $ LC_ALL=C sudo mv -v /var/lib/dpkg/info/solydk-system-adjustments* /tmp/
'/var/lib/dpkg/info/solydk-system-adjustments-8.list' -> '/tmp/solydk-system-adjustments-8.list'
elias@solydxk ~ $ LC_ALL=C sudo mv -v /etc/skel/.gnupg/gpg.conf /tmp/
'/etc/skel/.gnupg/gpg.conf' -> '/tmp/gpg.conf'
elias@solydxk ~ $ LC_ALL=C sudo apt-get purge solydk-system-adjustments*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'solydk-system-adjustments' for glob 'solydk-system-adjustments*'
Note, selecting 'solydk-system-adjustments-8' for glob 'solydk-system-adjustments*'
Note, selecting 'solydk-system-adjustments-9' for glob 'solydk-system-adjustments*'
Package 'solydk-system-adjustments' is not installed, so not removed
Package 'solydk-system-adjustments-9' is not installed, so not removed
The following packages will be REMOVED:
  solydk-system-adjustments-8*
0 upgraded, 0 newly installed, 1 to remove and 25 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Abort.
elias@solydxk ~ $ LC_ALL=C sudo apt-get purge solydk-system-adjustments*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'solydk-system-adjustments' for glob 'solydk-system-adjustments*'
Note, selecting 'solydk-system-adjustments-8' for glob 'solydk-system-adjustments*'
Note, selecting 'solydk-system-adjustments-9' for glob 'solydk-system-adjustments*'
Package 'solydk-system-adjustments' is not installed, so not removed
Package 'solydk-system-adjustments-9' is not installed, so not removed
The following packages will be REMOVED:
  solydk-system-adjustments-8*
0 upgraded, 0 newly installed, 1 to remove and 25 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Abort.
elias@solydxk ~ $ LC_ALL=C sudo apt-get purge solydxk-system
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'solydxk-system' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
elias@solydxk ~ $ LC_ALL=C sudo apt-get install solydxk-system solydk-system-adjustments-9
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  apparmor apparmor-profiles apparmor-profiles-extra apparmor-utils apt-transport-https
  evolvere-icon-theme-blue-folders-flat-vivid evolvere-icon-theme-blue-folders-flat-vivid-dark
  gtk3-engines-breeze kde-style-breeze-qt4 libapparmor-perl libreoffice-breeze-dark
  libreoffice-style-breeze pv python3-apparmor python3-libapparmor
Suggested packages:
  vim-addon-manager doc-base
E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?
elias@solydxk ~ $ 
Got stuck again at the end with this output...

Looking forward to the next move!.. ;)
EliaSXK91,
speaking!..

User avatar
Arjen Balfoort
Site Admin
Posts: 9249
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: apt: command not found (!..)

Postby Arjen Balfoort » 15 Jun 2019 06:13

First, you need to address these errors:

Code: Select all

Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
It seems you have the same lines configured in this list.

Code: Select all

sudo nano /etc/apt/sources.list.d/google-earth-pro.list
and remove any lines that are already there.

Install the missing package:

Code: Select all

LC_ALL=C sudo apt-get install apt-transport-https
Then run:

Code: Select all

LC_ALL=C sudo apt-get update
LC_ALL=C sudo apt-get install solydxk-system solydk-system-adjustments-9


SolydXK needs you!
Development | Testing | Translations

User avatar
EliaSXK91
Posts: 28
Joined: 06 May 2019 12:01

Re: apt: command not found (!..)

Postby EliaSXK91 » 15 Jun 2019 09:17

Arjen Balfoort wrote:
15 Jun 2019 06:13
First, you need to address these errors:

Code: Select all

Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
It seems you have the same lines configured in this list.

Code: Select all

sudo nano /etc/apt/sources.list.d/google-earth-pro.list
and remove any lines that are already there.

Install the missing package:

Code: Select all

LC_ALL=C sudo apt-get install apt-transport-https
Then run:

Code: Select all

LC_ALL=C sudo apt-get update
LC_ALL=C sudo apt-get install solydxk-system solydk-system-adjustments-9

Code: Select all

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://dl.google.com/linux/earth/deb/ stable main
LC_ALL=C sudo apt-get install apt-transport-https
LC_ALL=C sudo apt-get update
LC_ALL=C sudo apt-get install solydxk-system solydk-system-adjustments-9
Unfortunately, i don't know what happened here...
After sudo nano my konsole changed internally
+nothing seems to proceed or change whatsoever... :facepalm:
EliaSXK91,
speaking!..

User avatar
ilu
Posts: 2468
Joined: 09 Oct 2013 12:45

Re: apt: command not found (!..)

Postby ilu » 15 Jun 2019 16:23

Please stop full-quoting ecerything Arjen posts unless the quote is really necessary. I will edit some of your previous post so that you can see what I mean. Things get so much easier to read!
Just post what YOU do in your terminal.
Your output doesn't make any sense. What did you do to get that output? I can't see your terminal command there. Did you enter the sudo nano command?

Nano is a text editor which will open a text editing window - just in case you don't know. So maybe you entered those lines into the text editing window? If that window appeared after entering sudo nano /etc/apt/sources.list.d/google-earth-pro.list please ensure that the file contains only

Code: Select all

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb http://dl.google.com/linux/earth/deb/ stable main
I have added a "#" in front of "deb ..." to temporary disable this repo until everything is fixed. You can leave nano text editing with ctrl-o to save (ctrl-x will abandon your changes). If you want you can reenable the repo later by removing the "#".

After editing please post the output of

Code: Select all

sudo cat /etc/apt/sources.list.d/google-earth-pro.list
and proceed with the commands Arjen gave you.

User avatar
EliaSXK91
Posts: 28
Joined: 06 May 2019 12:01

Re: apt: command not found (!..)

Postby EliaSXK91 » 17 Jun 2019 23:45

...Alright ilu...
Unfortunately, i don't know something,
untill i get to know it first, somehow, sometime, someplace...

Yap, the sudo nano command was given
+what followed was the output inside this text editor window...
From then on, i simply lost the way out...

Therefore,
i shall repeat it following your guidelines (as far as i can get.../not much, afterall...) now,
starting all over from Arjen's 1st command:
[ Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1 ]

Code: Select all

elias@solydxk ~ $ LC_ALL=C
elias@solydxk ~ $ Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/google-earth-pro.list:3 and /etc/apt/sources.list.d/google-earth.list:1
bash: syntax error near unexpected token `('
elias@solydxk ~ $ 
Then, with the 2nd command..,
[ sudo nano /etc/apt/sources.list.d/google-earth-pro.list ]

Code: Select all

elias@solydxk ~ $ sudo nano /etc/apt/sources.list.d/google-earth-pro.list
[sudo] password for elias: 
...it brings me into this *colourful* text editor here:

Code: Select all

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb http://dl.google.com/linux/earth/deb/ stable main

File Name to Write: /etc/apt/sources.list.d/google-earth-pro.list                                 
But still, i can't proceed with control-O...
This " File Name to Write: /etc/apt/sources.list.d/google-earth-pro.list " appears at the bottom...
+some new commands appear down there as well...

What a (personal at least...) mess!.. :?
EliaSXK91,
speaking!..

User avatar
ilu
Posts: 2468
Joined: 09 Oct 2013 12:45

Re: apt: command not found (!..)

Postby ilu » 18 Jun 2019 03:54

After ctrl-o you have to hit enter to confirm the "File Name to Write". It then says "file saved" or something similar. Then ctrl-x to leave. It's not really intuitive to use but its still the best from the editors usuable under terminal.

On a different note: You probably learn quite a lot while trying to repair your system but I'm starting to doubt whether its worth the time. In about 2 weeks debian will release a new version and our ISO will follow about a month later. Since your system is running for about 5 years now - maybe its time for a reinstall? A fresh start?


Return to “Software”

Who is online

Users browsing this forum: No registered users and 4 guests