When I tried to update Ubuntu 17.10 to 18.04, the installation failed and stopped the update. Now it won't boot. How can I fix Ubuntu and save my files that are on the computer?
During my attempt to upgrade my Xubuntu 14.04 installation with  sudo apt-get dist-upgrade   I made the mistake of interrupting the process by closing my laptop, which caused it to suspend to disk. After re-opening, the monitor remained black, so I was forced to reboot the system. I have since discovered many failures of drivers (wlan0 missing, USB memory stick cannot be mounted, USB mouse not recognised, and maybe more undiscovered problems with hardware).   My beginner's attempts to manually repair the single problems could have made it even worse. During the installation of the current distribution I chose to encrypt my whole hard disk.
lstlisting - line number gaps Is it possible to add non-number characters on the left of a code block?  Specifically, I want to add ... to correspond with some source code (see image).    I am currently using commands to stop / start the line numbers. Here is the code:  \documentclass[12pt]{article}  \usepackage[a4paper, margin = 20mm, top = 30mm, bottom = 25mm]{geometry} \usepackage{xcolor, soul} \usepackage{listings}  \definecolor{codebackground}{rgb}{0.95, 0.95, 0.92}  \lstset {     frame            = tb, % hrule above and below     keepspaces       = true,     columns          = flexible,     basicstyle       = {\normalsize\ttfamily},     escapeinside     = {(*@}{@*)}, % for escaping     backgroundcolor  = \color{codebackground},     showstringspaces = false,     language         = C,     keywordstyle     = \color{blue},     stringstyle      = \color{red},     commentstyle     = \color{teal},     numbers          = left, % {none, left, right}     firstnumber      = 1,     numberstyle      = \scriptsize\color{black},     numbersep        = 5pt }  \let\origthelstnumber\thelstnumber \makeatletter % for stopping line numbers \newcommand*\stopnumber {     \lst@AddToHook{OnNewLine}     {         \let\thelstnumber\relax         \advance\c@lstnumber-\@ne\relax     } } % for starting line numbers \newcommand*\startnumber[1] {     \setcounter{lstnumber}{\numexpr#1-1\relax}     \lst@AddToHook{OnNewLine}     {         \let\thelstnumber\origthelstnumber         \refstepcounter{lstnumber}     } } \makeatother  \begin{document} \begin{lstlisting}[firstnumber = 456] int third_function(const int c) {     /* error checking */     if(c &lt; 0)     {         return;     } (*@ \stopnumber @*)      ...     (*@ \startnumber{512} @*)     /* other stuff */     int d = 4;     char* word = "third function"; (*@ \stopnumber @*)      ...     (*@ \startnumber{678} @*)     return (c * d); } \end{lstlisting} \end{document} Some GUI apps use OS X location services, but I want to retrieve a Mac's physical location from the . This could be useful for running scripts, switching settings etc. The mechanism should be , not a Geo IP service (data too low-res, needs online connection).  Minimum requirement is output of longitude and latitude. Nice would be a number indicating the precision. Super nice: a geocoder that provides location names. Let $(x_n)$ be a sequence of real numbers.  Prove that if there exists $x$ such that every subsequence $(x_{n_k})$ of $(x_n)$ has a convergent (sub-)subsequence $(x_{n_{k_l}})$ to $x$, then the original sequence $(x_n)$ itself converges to $x$ .              Thanks for any help. i have a huuuuge problem.  Created a snapshot and image from my instance...instance has 1000GB of disk.  Now i need to reduce it but everytime i try to create an image or a snapshot from that, i get the same error "Disk need to be at least 1000GB".  There is a way to reduce disk size directly on instance? Some workaround? Is this correct? "One of the things that makes him great is..." One of the things that makes him great is he brings it every night.   I'm pretty sure it should be that make him in the plural, because one of the things is referring to a lot of things and a lot of things should take a plural verb. But I always hear native speakers in America say it in the singular, so with an s.  Another example:     This is one of the responsibilities that comes with greatness and he understands that.   Native speakers always use the verb in the singular (here, comes) even though [I believe] it is grammatically incorrect to use the singular form of the verb there. Feed randomly gone on SE Android app SE Android App Version: 1.0.84  There is a display issue in the Feed section. The Earlier today, the below sections and the post title are not visible.  There is no exact steps to reproduce. It doesn't happen when the app is initializing. But if you open the Stack Exchange app, navigate to some other apps, then come back after few minutes, I can see this issue (but not all the time).  When the issue is there, if I manually click the Feed option in the navigation sidebar, the display issue is fixed.  I have recorded the issue: When I´m in a secure part of a web-site I´m developing (entering a specific page or folder using https), the relative links to the normal pages are automatically converted to https as well. Is there a way to tell an &lt;a&gt; tag to always use the http protocol instead of the https protocol (or the other way around)? I know it´s easy using the complete link ( or ), but I would like it to work with relative links (index.html, ../index.html, etc.). Human vs. alien to avoid extinction by omnipotent being I checked my  to see whether I can find something similar to the main-site flag-history for chat-flags, but didn't find anything. I recently had the (dis)pleasure of regularly having to deal with a user, that has been deleted multiple times. Whenever they show up (with the same nick-name) again I have to flag them again. I'd like to get an overview of how often I had to do that, and whether my flags were helpful for the moderators. As such I propose the implementation of a flag-history as it is already in place for the main-site for chat-flags, that request moderator intervention. To be completely clear I am not talking about the 10k user flags, which are acted on in a matter of sometimes seconds with instantly visible results, but about moderator attention flags from this menu: Let $X(n)$ denote number of all permutations of $\left\{1,\ldots,n \right\}$ that have only cycles of even length. Let $Y(n)$ denote number of all permutations of the same set that have only cycles of odd length. Count $X(2n)-Y(2n)$.   I don't know even how to start. I counted this sum for $n=1,2,3$ and it seems that it is always equal to $0$, but it doesn't help with calculating it in general. How to make partitions mount at startup? Is there a *simple* example of how the axiom of choice can lead to a counterintuitive result? Re-mounting an un-mounted USB stick Compiling the following code and got the error of type illegal.  int main() {     // Compilation error - switch expression of type illegal     switch(std::string("raj"))     {     case"sda":     } }   You cannot use string in either switch or case. Why? Is there any solution that works nicely to support logic similar to switch on strings? Convert short[] into a grayscale image Automatically generate thumbnails for all subfolders of a directory in Windows 7? Adding button into a Listview in WinForms Is there a way to add a button control to a cell in inside a ListView in a WinForms app? I get this error whenever I try to install programs using the terminal:  home@ubuntu:~$ apt-get install myunity E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   Also I'm unable to install updates using the terminal. How do I say what is the current UTC in eastern zone I am a graduate student in mathematics who would like to learn some classical mechanics. However, there is one caveat: I am not interested in the standard coordinate approach. I can't help but think of the fields that arise in physics as sections of vector bundles (or maybe principal bundles) and would love an approach to classical mechanics or what have you that took advantage of this.  Now for the questions:   Is there a text book you would recommend that phrases the constructions in classical mechanics via bundles without an appeal to transition functions?   What are the drawbacks to this approach other than the fact that it makes computations less doable? (if it does that)   Are there benefits to thinking about things this way, ie would it be of benefit to someone attempting to learn this material to do it this way?