apxs, apxs2 is nowhere to be found in Debian
Solution 1
You Ctrl-C'd apt-get, aborting the install.
When apt-get shows changelogs, it shows them using less
(or whatever other pager you may have set - the default is less). If it's less that's running, just hit q to continue. Hitting Ctrl-C kills less, but it also kills apt-get.
Solution 2
First, it looks like your system cannot install packages. So you may need to look into that further. If your system is a low memory VPS, it is possible that you've run out of memory.
I haven't really seen apt
terminate without any diagnostics before, but it seems to me that that is what's happening.
However, for your immediate problem, you can try to move apxs2
from another box. First thing to do would be to use ldd /usr/bin/apxs2
on a system that has apache2-dev
installed. This command will give you a list of dynamic libraries that the binary needs. You can check if these libraries exist on your target system, and just copy the missing ones across as well. You can put them in /usr/local/lib
, or modify LD_LIBRARY_PATH
and keep them local. I wouldn't recommend copying the libraries to /lib
or /usr/lib
, though. That would cause headaches in the long run. This is not really a solution, but it may help in the short term.
Related videos on Youtube
Fred J.
Updated on September 18, 2022Comments
-
Fred J. over 1 year
In swift 2.1 and Xcode 7.1.1
I have the code below which when run in the terminal, it produces the next block of output.
import Foundation let oldName = "eleven" let newName = "twelve" let baseName = "/Users/empl1/Documents/abc/" let ignorFile: Set = ["png", "jpg"] let fm = NSFileManager() let dirEnum = fm.enumeratorAtPath(baseName + oldName) while let file = dirEnum?.nextObject() { }
Here is what I see in the terminal:
FredMac:Documents empl1$ swiftc copier.swift FredMac:Documents empl1$ swift copier copier:1:1: error: invalid UTF-8 found in source file ?????@ ? H__PAGEZEROx__TEXT__text__TEXT? copier:1:2: error: invalid UTF-8 found in source file ?????@ ? H__PAGEZEROx__TEXT__text__TEXT? copier:1:3: error: invalid UTF-8 found in source file ?????@ ? H__PAGEZEROx__TEXT__text__TEXT? copier:1:4: error: input files must be encoded as UTF-8 instead of UTF-16 ?????@ ? H__PAGEZEROx__TEXT__text__TEXT? FredMac:Documents empl1$
How is this problem fixed?
-
Tom over 12 years@jpalecek please check my question again i added what happens afterwards
-
-
Tom over 12 yearsthanks for the elaborated answer. I added what happens after apt-get fails. I should have included it in my initial question but i thought it's not related. Can you please take a look and tell me if you think it's still connected to lack of memory?
-
bdonlan over 12 yearsLow memory issues should result in some sort of log - either an error from APT, or a bus error message, or a OOM dump in dmesg.