首页 \ 问答 \ 软件包php5没有安装候选(Ubuntu 16.04)(Package php5 have no installation candidate (Ubuntu 16.04))

软件包php5没有安装候选(Ubuntu 16.04)(Package php5 have no installation candidate (Ubuntu 16.04))

当我尝试使用以下代码在Ubuntu 16.04中安装php5:

sudo apt-get install php5 php5-mcrypt

我得到以下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5' has no installation candidate

我已经尝试重新安装,但它没有帮助。

在我将15.10 Ubuntu更新到16.04之后遇到所有这个错误


When i try to install php5 in Ubuntu 16.04 by using following code:

sudo apt-get install php5 php5-mcrypt

I get following error:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5' has no installation candidate

I have tried reinstalling but it does not help.

All this error was encountered after I updated my 15.10 Ubuntu to 16.04


原文:https://stackoverflow.com/questions/36788873
更新时间:2022-10-29 13:10

最满意答案

用这个

    if MFMessageComposeViewController.canSendText() == true{
        let recipients:[String] = ["1500"]
        var messageController = MFMessageComposeViewController()
        //messageController.messageComposeDelegate = self // implement delegate if you want
        messageController.recipients = recipients
        messageController.body = "Your_text"
        self.present(messageController, animated: true, completion: nil)

    }

use this

    if MFMessageComposeViewController.canSendText() == true{
        let recipients:[String] = ["1500"]
        var messageController = MFMessageComposeViewController()
        //messageController.messageComposeDelegate = self // implement delegate if you want
        messageController.recipients = recipients
        messageController.body = "Your_text"
        self.present(messageController, animated: true, completion: nil)

    }

相关问答

更多
  • 用这个 if MFMessageComposeViewController.canSendText() == true{ let recipients:[String] = ["1500"] var messageController = MFMessageComposeViewController() //messageController.messageComposeDelegate = self // implement delegate if ...
  • 你可以在这里看到短信方案url不提供添加像邮件一样的主体的可能性。 要实现您的目标,您应该使用MFMessageComposeViewController 。 It seems that in iOS 11 it works as expected. if let url = URL(string: "sms:") { UIApplication.shared.openURL(url) } This will open the sms app and show the me ...
  • 这取决于。 如果需要传统的消息方法,可以将消息保存在数据库中。 这最适用于通过电子邮件或公告板“风格”发送的消息。 但是,如果您需要实时行为和大量消息,那么在中间使用数据库可能会使事情变慢。 您可以使用node.js进行实时聊天。 如果您打算使用Django-Messages作为用户之间进行通信的手段,那么它并不适用于此。 它仅用于在用户浏览应用中的页面时显示Flash通知。 它们通常存储在会话中,仅用于以下页面,然后被删除。 我无法提供更多细节,因为你的问题很模糊。 首先,你需要找到你的计划,你打算如何使 ...
  • 2步骤 1-清理代码并在模拟器或设备中运行应用程序。 在build> android文件夹中,您将看到一个AndroidManifest.xml文件。 复制该文件。 在资源命名平台中创建一个文件夹,然后在平台文件夹中的android文件夹中粘贴xml文件。 2-这是我的应用程序的代码
  • 我假设您使用system.diagnostics.debug输出调试信息。 在桌面版.NET中,您可以添加Debug.Listeners来捕获日志并输出到文件。 但是在.NET for Store App中,您无法添加文件侦听器。 另一种记录方法是使用ETW(Windows事件跟踪)。 代码示例: Windows应用商店应用的日志记录示例(在WinRT中记录ETW) 博客如何在WINDOWS STORE APPS中编写日志文件还介绍了几种登录Windows应用商店应用的方法。 I assume you us ...
  • 苹果开发者论坛上的一位苹果员工回答道:不,目前尚不可能。 我作为RADAR 27079838提交了一项功能请求。 An Apple staffer on the Apple Dev forums replied: No, this is not currently possible. I filed a feature request as RADAR 27079838.
  • 简短的回答:不。 更长的回答:JMS不过是Java中的API接口规范。 没有Java,你无法真正使用JMS。 因此,要使用通用JMS(任何供应商),您需要在JMS实现和JavaScript(node.js)应用程序之间使用一些Java粘合代码(例如seam,或更自定义的东西)。 另一方面,AMQP不仅仅是一个API。 它实际上是一种标准化的线路协议,因此可以用任何语言实现。 JMS没有这种奢侈品。 也就是说,如果您选择与特定供应商合作,那么您可能会有选择。 我不知道Apache ActiveMQ是否支持AJ ...
  • 我真的不认为有更优雅或更好的方式,然后设置newMessage.conversation.lastMessage = newMessage 。 每次添加或更改实体时,Core Data都会发布通知,但我不认为观察它们会更容易,然后在每次创建新消息时添加这行代码。 I really don't think that there is something more elegant or any kind of better way, then setting newMessage.conversation.la ...
  • 不,抱歉不可能。 有些应用程序允许您使用URL方案在应用程序中打开它们,但内置的iOS照片应用程序不是其中之一。 No, sorry not possible. Some apps allow you to open them from within your app using URL schemes but the built in iOS photos app is not one of them.
  • 使用Intent过滤器可以实现这样的功能(假设您的应用程序安装在打开消息的设备上)。 假设您将此URL与您的消息一起发送: http://myapp.com/whatever : http://myapp.com/whatever (格式取决于您)。 用户点击链接后会发生以下情况: 意图打开URL将通过消息应用发送。 系统将查看您设备上已安装的应用以及他们的意图过滤器。 如果多于1个intent-filter接受请求,系统将提示用户选择要用于打开链接的Activity。 好了,现在我们知道它是如何工作的,让 ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)